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