public static class Point4D.Float extends Point4D
Point4D.Double, Point4D.Float, Point4D.Integer
Constructor and Description |
---|
Point4D.Float() |
Point4D.Float(float[] xyzt) |
Point4D.Float(float x,
float y,
float z,
float t) |
Modifier and Type | Method and Description |
---|---|
double |
getT()
Returns the T coordinate of this
Point4D in double precision. |
double |
getX()
Returns the X coordinate of this
Point4D in double precision. |
double |
getY()
Returns the Y coordinate of this
Point4D in double precision. |
double |
getZ()
Returns the Z coordinate of this
Point4D in double precision. |
void |
setLocation(double x,
double y,
double z,
double t)
Sets the location of this
Point4D to the
specified double coordinates. |
void |
setT(double t)
Sets the T coordinate of this
Point4D in double precision. |
void |
setX(double x)
Sets the X coordinate of this
Point4D in double precision. |
void |
setY(double y)
Sets the Y coordinate of this
Point4D in double precision. |
void |
setZ(double z)
Sets the Z coordinate of this
Point4D in double precision. |
static float[] |
toFloatArray(Point4D.Float[] input)
Create an array of float from the input Point4D.Float array.
|
java.awt.geom.Point2D |
toPoint2D()
Convert to 2D point
|
Point3D |
toPoint3D()
Convert to 3D point
|
static Point4D.Float[] |
toPoint4D(float[] input)
Create an array of Point4D.Float from the input float array.
|
clone, equals, setLocation, toString
public Point4D.Float(float x, float y, float z, float t)
public Point4D.Float(float[] xyzt)
public Point4D.Float()
public static Point4D.Float[] toPoint4D(float[] input)
input.lenght
= number of point * 4.input[(pt * 4) + 0]
= X coordinate for point ptinput[(pt * 4) + 1]
= Y coordinate for point ptinput[(pt * 4) + 2]
= Z coordinate for point ptinput[(pt * 4) + 3]
= T coordinate for point ptpublic static float[] toFloatArray(Point4D.Float[] input)
result.lenght
= number of point * 4.result[(pt * 4) + 0]
= X coordinate for point ptresult[(pt * 4) + 1]
= Y coordinate for point ptresult[(pt * 4) + 2]
= Z coordinate for point ptresult[(pt * 4) + 3]
= T coordinate for point ptpublic double getX()
Point4D
Point4D
in double
precision.public void setX(double x)
Point4D
Point4D
in double
precision.public double getY()
Point4D
Point4D
in double
precision.public void setY(double y)
Point4D
Point4D
in double
precision.public double getZ()
Point4D
Point4D
in double
precision.public void setZ(double z)
Point4D
Point4D
in double
precision.public double getT()
Point4D
Point4D
in double
precision.public void setT(double t)
Point4D
Point4D
in double
precision.public void setLocation(double x, double y, double z, double t)
Point4D
Point4D
to the
specified double
coordinates.setLocation
in class Point4D
x
- the new X coordinate of this Point4D
y
- the new Y coordinate of this Point4D
z
- the new Z coordinate of this Point4D
t
- the new T coordinate of this Point4D
public java.awt.geom.Point2D toPoint2D()
Point4D