Package com.esri.core.geometry
Class Point3D
- java.lang.Object
-
- com.esri.core.geometry.Point3D
-
- All Implemented Interfaces:
java.io.Serializable
public final class Point3D extends java.lang.Object implements java.io.Serializable
Basic 3D point class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
double
x
double
y
double
z
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
_isNan()
(package private) void
_setNan()
static Point3D
construct(double x, double y, double z)
double
dotProduct(Point3D other)
boolean
equals(Point3D other)
boolean
equals(java.lang.Object other_)
int
hashCode()
double
length()
void
mul(double factor)
void
normalize()
void
scale(double f, Point3D other)
void
setCoords(double x, double y, double z)
void
setCoords(Point3D other)
void
setZero()
double
sqrLength()
void
sub(Point3D other)
void
sub(Point3D p1, Point3D p2)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
x
public double x
-
y
public double y
-
z
public double z
-
-
Constructor Detail
-
Point3D
public Point3D()
-
Point3D
public Point3D(Point3D other)
-
Point3D
public Point3D(double x, double y, double z)
-
-
Method Detail
-
construct
public static Point3D construct(double x, double y, double z)
-
setCoords
public void setCoords(double x, double y, double z)
-
setCoords
public void setCoords(Point3D other)
-
setZero
public void setZero()
-
normalize
public void normalize()
-
dotProduct
public double dotProduct(Point3D other)
-
sqrLength
public double sqrLength()
-
length
public double length()
-
sub
public void sub(Point3D other)
-
scale
public void scale(double f, Point3D other)
-
mul
public void mul(double factor)
-
_setNan
void _setNan()
-
_isNan
boolean _isNan()
-
equals
public boolean equals(Point3D other)
-
equals
public boolean equals(java.lang.Object other_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-