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