| Constructor and Description |
|---|
XyzPoint(double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
double |
distanceFrom(XyzPoint nother)
Returns the straight-line distance between this point and the one given.
|
double |
distanceSquaredFrom(XyzPoint nother)
Returns the square of the straight-line distance between this point and
the one given.
|
boolean |
equals(java.lang.Object nother) |
XyzBounds |
getBounds()
Returns an XyzBounds object representing the rectangular extents of this
shape.
|
double |
getX()
X coordinate.
|
double |
getY()
Y coordinate.
|
double |
getZ()
Z coordinate.
|
java.util.Iterator<XyzPoint> |
iterator() |
XyzPoint |
offsetFrom(XyzPoint nother)
Returns the offset, or three-dimensional difference, between this point
and the other.
|
XyzPoint |
scale(double scale)
Return a scaled version of the shape by multiplying all coordinates by
the given factor in both dimensions.
|
XyzPoint |
scale(double scaleX,
double scaleY,
double scaleZ) |
java.lang.String |
toString() |
XyzShape |
transform(XyzTransform transform)
Transform the shape using the given transform.
|
XyzPoint |
translate(double offsetX,
double offsetY,
double offsetZ)
Translate the shape by adding all coordinates to the given x, y, and z
offsets.
|
public double distanceFrom(XyzPoint nother)
nother - other point to measure frompublic double distanceSquaredFrom(XyzPoint nother)
nother - other point to measure frompublic XyzPoint offsetFrom(XyzPoint nother)
nother - point to calculate offset frompublic XyzPoint scale(double scaleX, double scaleY, double scaleZ)
public XyzPoint scale(double scale)
XyzShapepublic XyzPoint translate(double offsetX, double offsetY, double offsetZ)
XyzShapepublic XyzShape transform(XyzTransform transform)
XyzShapepublic java.util.Iterator<XyzPoint> iterator()
iterator in interface java.lang.Iterable<XyzPoint>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object nother)
equals in class java.lang.Objectpublic XyzBounds getBounds()
XyzShapepublic double getX()
public double getY()
public double getZ()