aabb3 [object]
In this object, assume 1 = min and 2 = max.
- methods
- expand - include other vec3/aabb3 items in current AABB
- read-only properties
- [real] width -- x2 - x1
- [real] height -- y2 - y1
- [real] depth -- z2 - z1
- [vec3] center -- (p1 + p2) / 2
- [real] area -- width height depth
- [bool] valid -- returns if x1 <= x2 and y1 <= y2 and z1 <= z2
- read/write properties
- [real] x1
- [real] y1
- [real] z1
- [real] x2
- [real] y2
- [real] z2
- [vec3] p1
- [vec3] p2
- overloaded operators
- comparison between aabb3 values: first by X1, then by Y1, then by Z1, then by X2, then by Y2, then by Z2
- other features:
- cloning support
- serialization support
- GC-safe
- tostring, dump = "aabb3(<x1>;<y1>;<z1> - <x2>;<y2>;<z2>)"