public static class Point3D.Double extends Point3D
Point3D.Double, Point3D.Float, Point3D.Integer| Constructor and Description |
|---|
Point3D.Double() |
Point3D.Double(double[] xyz) |
Point3D.Double(double x,
double y,
double 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 double[] |
toDoubleArray(Point3D.Double[] input)
Create an array of double from the input Point3D.Double array.
|
java.awt.geom.Point2D |
toPoint2D()
Convert to 2D point
|
static Point3D.Double[] |
toPoint3D(double[] input)
Create an array of Point3D.Double from the input double 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.Double(double x, double y, double z)
public Point3D.Double(double[] xyz)
public Point3D.Double()
public static Point3D.Double[] toPoint3D(double[] 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 double[] toDoubleArray(Point3D.Double[] 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.