|
|||||||||||
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.Size3
A 3D spatial element representing a non-transformable axis-aligned non-negative spatial size. Throws an exception if negative dimension values are used. Typically used to define the extent of a finite reference space, such as a shape's local space, or an absolute world, display, or screen space.
Constructor Summary | |
Size3()
|
|
Size3(double[] val)
Creates an instance using a mutator. |
|
Size3(double x,
double y,
double z)
Creates an instance using a mutator. |
|
Size3(Tuple3 tuple)
Creates an instance using a mutator. |
Method Summary | |
Point3 |
center(Point3 retVal)
Returns the center point of this size. |
boolean |
equals(java.lang.Object obj)
|
Size3 |
getSize3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object. |
protected Size3 |
implGetSize3()
Master whole state accessor. |
protected Tuple3 |
implSetTuple3(double[] val)
Master whole state mutator. |
protected Tuple3 |
implSetTuple3(int dim,
double val)
Master partial state mutator. |
Size3 |
set(Point3 pointA,
Point3 pointB)
Sets this size from the absolute difference of two points. |
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, 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 |
Constructor Detail |
public Size3()
public Size3(double x, double y, double z)
public Size3(double[] val)
public Size3(Tuple3 tuple)
Method Detail |
public Size3 set(Point3 pointA, Point3 pointB)
public Size3 getSize3()
public Point3 center(Point3 retVal)
protected Size3 implGetSize3()
protected Tuple3 implSetTuple3(int dim, double val)
Tuple3
implSetTuple3
in class Tuple3
dim
- Dimension. Throws an exception if out of range.val
- New value for the dimension.
java.lang.IllegalArgumentException
- Dimension values
must be non-negative.protected Tuple3 implSetTuple3(double[] val)
Tuple3
implSetTuple3
in class Tuple3
val
- New value [3].
java.lang.IllegalArgumentException
- Dimension values
must be non-negative.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 |