public class Point3D
extends PointF
Modifier and Type | Field and Description |
---|---|
float |
z |
Constructor and Description |
---|
Point3D() |
Point3D(float x,
float y,
float z) |
Point3D(Point3D p) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(float x,
float y,
float z)
Returns true if the point's coordinates equal (x,y,z)
|
boolean |
equals(Point3D p) |
static float |
length(float x,
float y,
float z)
Returns the euclidian distance from (0,0,0) to (x,y,z)
|
float |
length3()
Return the euclidian distance from (0,0,0) to the point
|
void |
negate3() |
void |
offset(float dx,
float dy,
float dz) |
void |
set(float x,
float y,
float z) |
void |
set(Point3D p) |
public Point3D()
public Point3D(Point3D p)
public Point3D(float x, float y, float z)
public void set(float x, float y, float z)
public void set(Point3D p)
public void negate3()
public void offset(float dx, float dy, float dz)
public boolean equals(float x, float y, float z)
public boolean equals(Point3D p)
public float length3()
public static float length(float x, float y, float z)