public static class Point3D.Integer extends Point3D
Point3D.Double, Point3D.Float, Point3D.Integer
Constructor and Description |
---|
Point3D.Integer() |
Point3D.Integer(int[] xyz) |
Point3D.Integer(int x,
int y,
int 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 int[] |
toIntegerArray(Point3D.Integer[] input)
Create an array of integer from the input Point3D.Integer array.
|
java.awt.geom.Point2D |
toPoint2D()
Convert to 2D point
|
static Point3D.Integer[] |
toPoint3D(int[] input)
Create an array of Point3D.Integer from the input integer 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, translate
public Point3D.Integer(int x, int y, int z)
public Point3D.Integer(int[] xyz)
public Point3D.Integer()
public static Point3D.Integer[] toPoint3D(int[] 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 int[] toIntegerArray(Point3D.Integer[] 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 java.lang.String toString()
Point3D
Point3D
.
This method is intended to be used only for informational purposes.