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