java.lang.Object
org.bzdev.geom.Point3D
org.bzdev.geom.Point3D.Double
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Point3D
Class representing points in three dimensions using
double-precision coordinates
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bzdev.geom.Point3D
Point3D.Double, Point3D.Float
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
Get the X coordinate of this point.double
getY()
Get the Y coordinate of this point.double
getZ()
Get the Z coordinate of this point.void
setLocation
(double x, double y, double z) Set the location of this point given the location's coordinates.toString()
Methods inherited from class org.bzdev.geom.Point3D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Field Details
-
x
public double xThe X coordinate of this point -
y
public double yThe Y coordinate of this point -
z
public double zThe Z coordinate of this point
-
-
Constructor Details
-
Double
public Double()Constructor. -
Double
public Double(double x, double y, double z) Constructor with coordinates.- Parameters:
x
- the X coordinate of the pointy
- the Y coordinate of the pointz
- the Z coordinate of the point
-
-
Method Details
-
getX
public double getX()Description copied from class:Point3D
Get the X coordinate of this point. -
getY
public double getY()Description copied from class:Point3D
Get the Y coordinate of this point. -
getZ
public double getZ()Description copied from class:Point3D
Get the Z coordinate of this point. -
setLocation
public void setLocation(double x, double y, double z) Description copied from class:Point3D
Set the location of this point given the location's coordinates.- Specified by:
setLocation
in classPoint3D
- Parameters:
x
- the X coordinate for this point's locationy
- the Y coordinate for this point's locationz
- the Z coordinate for this point's location
-
toString
-