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 |
setLocation(double x,
double y,
double z)
Sets the location of this
Point3D to the
specified double coordinates. |
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() |
clone, equals, setLocation
public 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()
Point3D
Point3D
in double
precision.public void setX(double x)
Point3D
Point3D
in double
precision.public double getY()
Point3D
Point3D
in double
precision.public void setY(double y)
Point3D
Point3D
in double
precision.public double getZ()
Point3D
Point3D
in double
precision.public void setZ(double z)
Point3D
Point3D
in double
precision.public void setLocation(double x, double y, double z)
Point3D
Point3D
to the
specified double
coordinates.setLocation
in class Point3D
x
- the new X coordinate of this Point3D
y
- the new Y coordinate of this Point3D
z
- the new Z coordinate of this Point3D