com.supermap.data
Class Point3D
- java.lang.Object
-
- com.supermap.data.Point3D
-
public class Point3D extends java.lang.Object
The Point3D class.Note that the coordinate values of the Point3D object can range from ±5.0*1e-324 to ±1.7*1e308, and with a precision of 15-16 digits.
-
-
Constructor Summary
Constructors Constructor and Description Point3D()
Constructs a new Point3D object.Point3D(double x, double y, double z)
Creates a new Point3D object according to the specified arguments.Point3D(Point3D pt)
Constructs a new object identical to the given Point3D object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
getX()
Returns the X-coordinate of the Point2D object.double
getY()
Returns the Y-coordinate of the Point2D object.double
getZ()
Returns the Z-coordinate of the Point2D object.void
setX(double value)
Sets the x-coordinate of this Point2D.void
setY(double value)
Sets the y-coordinate of this Point2D.void
setZ(double value)
Sets the Z-coordinate of this Point2D.
-
-
-
Constructor Detail
-
Point3D
public Point3D()
Constructs a new Point3D object.
-
Point3D
public Point3D(double x, double y, double z)
Creates a new Point3D object according to the specified arguments.- Parameters:
x
- The X coordinate of the Point3D.y
- The Y coordinate of the Point3D.z
- The Z coordinate of the Point3D.
-
Point3D
public Point3D(Point3D pt)
Constructs a new object identical to the given Point3D object.- Parameters:
pt
- The specified Point3D object.
-
-
Method Detail
-
getX
public double getX()
Returns the X-coordinate of the Point2D object.- Returns:
- the X-coordinate of the Point3D object.
-
setX
public void setX(double value)
Sets the x-coordinate of this Point2D.- Parameters:
value
- the x-coordinate of the given Point2D object.
-
getY
public double getY()
Returns the Y-coordinate of the Point2D object.- Returns:
- the Y-coordinate of the Point3D object.
-
setY
public void setY(double value)
Sets the y-coordinate of this Point2D.- Parameters:
value
- the y-coordinate of the given Point2D object.
-
getZ
public double getZ()
Returns the Z-coordinate of the Point2D object.- Returns:
- the Z-coordinate of the Point3D object.
-
setZ
public void setZ(double value)
Sets the Z-coordinate of this Point2D.- Parameters:
value
- the Z-coordinate of the given Point3D object.
-
-