public static class Point3D.Float extends Point3D
Point3D.Double, Point3D.Float, Point3D.Integer| Constructor and Description |
|---|
Point3D.Float() |
Point3D.Float(float[] xyz) |
Point3D.Float(float x,
float y,
float z) |
| Modifier and Type | Method and Description |
|---|---|
double |
getX()
Returns the X coordinate of this
Point3D in double precision. |
double |
getY()
Returns the Y coordinate of this
Point3D in double precision. |
double |
getZ()
Returns the Z coordinate of this
Point3D in double precision. |
void |
setX(double x)
Sets the X coordinate of this
Point3D in double precision. |
void |
setY(double y)
Sets the Y coordinate of this
Point3D in double precision. |
void |
setZ(double z)
Sets the Z coordinate of this
Point3D in double precision. |
static float[] |
toFloatArray(Point3D.Float[] input)
Create an array of float from the input Point3D.Float array.
|
java.awt.geom.Point2D |
toPoint2D()
Convert to 2D point
|
static Point3D.Float[] |
toPoint3D(float[] input)
Create an array of Point3D.Float from the input float array.
|
java.lang.String |
toString()
Returns a string representation of this
Point3D. |
angle, angle, angle, clone, crossProduct, crossProduct, distance, distance, dotProduct, dotProduct, equals, getDistance, getTotalDistance, hashCode, length, magnitude, midpoint, midpoint, norm2, normalize, setLocation, setLocation, translate, translatepublic Point3D.Float(float x, float y, float z)
public Point3D.Float(float[] xyz)
public Point3D.Float()
public static Point3D.Float[] toPoint3D(float[] input)
input.lenght = number of point * 3.input[(pt * 3) + 0] = X coordinate for point ptinput[(pt * 3) + 1] = Y coordinate for point ptinput[(pt * 3) + 2] = Z coordinate for point ptpublic static float[] toFloatArray(Point3D.Float[] input)
result.lenght = number of point * 3.result[(pt * 3) + 0] = X coordinate for point ptresult[(pt * 3) + 1] = Y coordinate for point ptresult[(pt * 3) + 2] = Z coordinate for point ptpublic double getX()
Point3DPoint3D in double precision.public void setX(double x)
Point3DPoint3D in double precision.public double getY()
Point3DPoint3D in double precision.public void setY(double y)
Point3DPoint3D in double precision.public double getZ()
Point3DPoint3D in double precision.public void setZ(double z)
Point3DPoint3D in double precision.public java.lang.String toString()
Point3DPoint3D.
This method is intended to be used only for informational purposes.