|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gumbo.graphic.math.Tuple3
|
+--gumbo.graphic.math.Point3
A 3D spatial element representing a point (vertex), which is used exclusively for spatial position.
| Constructor Summary | |
Point3()
|
|
Point3(double[] val)
Creates an instance using a mutator. |
|
Point3(double x,
double y,
double z)
Creates an instance using a mutator. |
|
Point3(Tuple3 tuple)
Creates an instance using a mutator. |
|
| Method Summary | |
double |
distance(Point3 point)
Returns the euclidean distance between this point and another. |
double |
distanceSquared(Point3 point)
Returns the squared euclidean distance (sum of the difference squared) between this point and another. |
boolean |
equals(java.lang.Object obj)
|
Point3 |
getPoint3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object. |
protected Point3 |
implGetPoint3()
Master whole state accessor. |
void |
transformGraphic(Matrix4 matrix)
Transforms this graphic's geometry by pre-multiplying it with the specified transform matrix. |
void |
transformGraphic(SpaceNode from,
SpaceNode to)
Transforms this graphic's geometry from one local reference space to another in a space tree. |
| Methods inherited from class gumbo.graphic.math.Tuple3 |
abs, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, clear, clearArray, div, div, get, get, getGraphic, getGraphicLocalSpace, getTuple3, getX, getY, getZ, implGetTuple3, implGetTuple3, implGetTuple3, implInitTuple3, implSetTuple3, implSetTuple3, isEqual, isEqual, isGreaterEqual, isInsideEqual, isLessEqual, isOutside, isZero, isZero, max, max, min, min, mult, mult, neg, noise, random, round, set, set, set, set, setArray, setX, setY, setZ, sub, sub, sum, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gumbo.graphic.space.GraphicGeometry |
getGraphicLocalSpace |
| Methods inherited from interface gumbo.graphic.Graphic |
getGraphic |
| Constructor Detail |
public Point3()
public Point3(double x,
double y,
double z)
public Point3(double[] val)
public Point3(Tuple3 tuple)
| Method Detail |
public Point3 getPoint3()
public final double distanceSquared(Point3 point)
public final double distance(Point3 point)
protected Point3 implGetPoint3()
public void transformGraphic(SpaceNode from,
SpaceNode to)
TransformableGraphic
transformGraphic in interface TransformableGraphicfrom - The current reference space. Never null.to - The new reference space. Never null.public void transformGraphic(Matrix4 matrix)
TransformableGraphic
transformGraphic in interface TransformableGraphicmatrix - Value of the transform matrix. Never null.public boolean equals(java.lang.Object obj)
equals in class Tuple3
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||