Class for working with an axis aligned bounding box.
Подробнее...
|
typedef comms::Bounds< float, 3 > | bounds_t |
|
Class for working with an axis aligned bounding box.
- Начиная с
- 4.5.32
coat::scripto::AABB::AABB |
( |
| ) |
|
|
inline |
Constructor for building an empty box.
- См. также
- empty()
bool coat::scripto::AABB::operator== |
( |
const AABB & |
| ) |
const |
bool coat::scripto::AABB::contains |
( |
const Vec3 & |
| ) |
const |
Returns TRUE
when point lies in this box.
Vec3 p( 1, 3, 9 );
...
if ( a.contains( p ) ) { ... }
bool coat::scripto::AABB::add |
( |
const Vec3 & |
| ) |
|
Extends this box by point. Returns TRUE
when box was extended.
a.add( Vec3( -10, -30, -90 ) );
a.add( Vec3( 90, 30, 10 ) );
a.add( Vec3( 9, 3, 1 ) );
AABB& coat::scripto::AABB::transform |
( |
const Mat4 & |
| ) |
|
Transform box by matrix 4 x 4.
Mat4 m;
...
a.transform( m );