public class RectangularSolid
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Constructor and Description |
|---|
RectangularSolid()
Instantiate a zero-extent rectangular solid at the origin.
|
RectangularSolid(Vector3f halfExtents)
Instantiate a centered solid with the specified half extents.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
halfExtents(Vector3f storeResult)
Determine the half extents of the solid.
|
Vector3f |
localToWorld(Vector3f local,
Vector3f storeResult)
Rotate from local coordinates to world coordinates.
|
Vector3f |
maxima(Vector3f storeResult)
Copy the maximum coordinate value for each local axis.
|
Vector3f |
minima(Vector3f storeResult)
Copy minimum coordinate value for each local axis.
|
java.lang.String |
toString()
Represent this solid as a text string.
|
public static final java.util.logging.Logger logger
public RectangularSolid()
public RectangularSolid(Vector3f halfExtents)
halfExtents - half extents the axis-aligned bounding box (not null,
unaffected)public Vector3f halfExtents(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f localToWorld(Vector3f local, Vector3f storeResult)
It is safe for local and storeResult to be the same
object.
local - the input coordinates (not null, unaffected)storeResult - storage for the result (modified if not null)public Vector3f maxima(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f minima(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public java.lang.String toString()
toString in class java.lang.Object