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