|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.xyz.XyzPoint
public class XyzPoint
A 3-dimensional point in x, y, z space.
Copyright 2006-2007
| Constructor Summary | |
|---|---|
XyzPoint(double x,
double y,
double z)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XyzPoint(double x,
double y,
double z)
| Method Detail |
|---|
public double distanceFrom(XyzPoint nother)
nother - other point to measure from
public double distanceSquaredFrom(XyzPoint nother)
nother - other point to measure from
public XyzPoint offsetFrom(XyzPoint nother)
nother - point to calculate offset from
public XyzPoint scale(double scaleX,
double scaleY,
double scaleZ)
public XyzPoint scale(double scale)
XyzShape
scale in interface XyzShape<XyzPoint>scale - scaling factor
public XyzPoint translate(double offsetX,
double offsetY,
double offsetZ)
XyzShape
translate in interface XyzShape<XyzPoint>offsetX - offset for the x dimensionoffsetY - offset for the y dimensionoffsetZ - offset for the z dimension
public XyzShape transform(XyzTransform transform)
XyzShape
transform in interface XyzShape<XyzPoint>transform - affine transform to apply.
public 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()
XyzShape
getBounds in interface XyzShape<XyzPoint>public double getX()
public double getY()
public double getZ()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||