public abstract class Point4D extends java.lang.Object implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Point4D.Double |
static class |
Point4D.Float |
static class |
Point4D.Integer |
| Constructor and Description |
|---|
Point4D() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
boolean |
equals(java.lang.Object obj) |
abstract double |
getT()
Returns the T coordinate of this
Point4D in double precision. |
abstract double |
getX()
Returns the X coordinate of this
Point4D in double precision. |
abstract double |
getY()
Returns the Y coordinate of this
Point4D in double precision. |
abstract 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 |
setLocation(Point4D p)
Sets the location of this
Point4D to the same
coordinates as the specified Point4D object. |
abstract void |
setT(double t)
Sets the T coordinate of this
Point4D in double precision. |
abstract void |
setX(double x)
Sets the X coordinate of this
Point4D in double precision. |
abstract void |
setY(double y)
Sets the Y coordinate of this
Point4D in double precision. |
abstract void |
setZ(double z)
Sets the Z coordinate of this
Point4D in double precision. |
abstract java.awt.geom.Point2D |
toPoint2D()
Convert to 2D point
|
abstract Point3D |
toPoint3D()
Convert to 3D point
|
java.lang.String |
toString() |
public Point4D()
public abstract double getX()
Point4D in double precision.Point4D.public abstract double getY()
Point4D in double precision.Point4D.public abstract double getZ()
Point4D in double precision.Point4D.public abstract double getT()
Point4D in double precision.Point4D.public abstract void setX(double x)
Point4D in double precision.public abstract void setY(double y)
Point4D in double precision.public abstract void setZ(double z)
Point4D in double precision.public abstract void setT(double t)
Point4D in double precision.public void setLocation(double x, double y, double z, double t)
Point4D to the
specified double coordinates.x - the new X coordinate of this Point4Dy - the new Y coordinate of this Point4Dz - the new Z coordinate of this Point4Dt - the new T coordinate of this Point4Dpublic void setLocation(Point4D p)
Point4D to the same
coordinates as the specified Point4D object.p - the specified Point4D to which to set
this Point4Dpublic abstract java.awt.geom.Point2D toPoint2D()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic java.lang.String toString()
toString in class java.lang.Object