Class JSC3D.AABB
AABB
This class implements the Axis-Aligned Bounding Box to measure spacial enclosure.
Defined in: jsc3d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
center()
Get the center coordinates of the AABB.
|
|
Get the length of the diagonal of the AABB.
|
Method Detail
{Array}
center()
Get the center coordinates of the AABB.
- Returns:
- {Array} center coordinates as an array.
{Number}
lengthOfDiagonal()
Get the length of the diagonal of the AABB.
- Returns:
- {Number} length of the diagonal.