public class Point3I
extends java.lang.Object
| Constructor and Description |
|---|
Point3I(int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
Point3I |
add(int value)
Add the given value to the point.
|
Point3I |
add(int x,
int y,
int z)
Add the given values to the point.
|
Point3I |
add(Point3I point)
Add the values of the given point to this point.
|
double |
distance(int x,
int y,
int z)
Calculate the distance between this point and the given point.
|
double |
distance(Point3I point)
Calculate the distance between this point and the given point.
|
double |
distanceSquared(int x,
int y,
int z)
Calculate the square distance between this point and the given point.
|
double |
distanceSquared(Point3I point)
Calculate the square distance between this point and the given point.
|
Point3I |
divide(int value)
Divide the point by the given value.
|
Point3I |
divide(int x,
int y,
int z)
Divide the point by the given values.
|
Point3I |
divide(Point3I point)
Divide this point by the values of the given point.
|
int |
getX() |
int |
getY() |
int |
getZ() |
Point3I |
multiply(int value)
Multiply the point with the given value.
|
Point3I |
multiply(int x,
int y,
int z)
Multiply the point with the given values.
|
Point3I |
multiply(Point3I point)
Multiply the values of the given point with this point.
|
Point3I |
subtract(int value)
Subtract the given value from the point.
|
Point3I |
subtract(int x,
int y,
int z)
Subtract the given values from the point.
|
Point3I |
subtract(Point3I point)
Subtract the values of the given point from this point.
|
public int getX()
public int getY()
public int getZ()
public Point3I add(int value)
value - The value to addpublic Point3I add(int x, int y, int z)
x - The x value to addy - The y value to addz - The z value to addpublic Point3I add(Point3I point)
point - The point to addpublic Point3I subtract(int value)
value - The value to subtractpublic Point3I subtract(int x, int y, int z)
x - The x value to subtracty - The y value to subtractz - The z value to subtractpublic Point3I subtract(Point3I point)
point - The point to subtractpublic Point3I multiply(int value)
value - The value to multiplypublic Point3I multiply(int x, int y, int z)
x - The x value to multiplyy - The y value to multiplyz - The z value to multiplypublic Point3I multiply(Point3I point)
point - The point to multiplypublic Point3I divide(int value)
value - The value to dividepublic Point3I divide(int x, int y, int z)
x - The x value to dividey - The y value to dividez - The z value to dividepublic Point3I divide(Point3I point)
point - The point to dividepublic double distanceSquared(int x,
int y,
int z)
x - The x coordinate of the pointy - The y coordinate of the pointz - The z coordinate of the pointpublic double distanceSquared(Point3I point)
point - The point to calculate the distance topublic double distance(int x,
int y,
int z)
x - The x coordinate of the pointy - The y coordinate of the pointz - The z coordinate of the pointpublic double distance(Point3I point)
point - The point to calculate the distance to