#include <collision/aabb.h>
Inheritance diagram for neo::collision::AABB:


Public Member Functions | |
| AABB (const math::Vector3 &dim=math::Vector3::ZERO) | |
| Initialize data. | |
| AABB (const math::Vector3 &globalTrans, const math::Vector3 &localTrans, const math::Quaternion &globalRot, const math::Quaternion &localRot, const math::Vector3 &dim) | |
| Initialize data. | |
| virtual | ~AABB () |
| Free resources. | |
| const math::Vector3 & | getDimension () const |
| Get dimension. | |
| void | setDimension (const math::Vector3 &dim) |
| Set dimension. | |
| virtual bool | intersect (const math::Vector3 &point, bool earlyout=true) const |
| Intersection test with point. | |
| virtual bool | intersect (const AABB *p_volume, bool earlyout=true) const |
| Intersection test with AABB. | |
| virtual bool | intersect (const OBB *p_volume, bool earlyout=true) const |
| Intersection test with OBB. | |
| virtual bool | intersect (const Sphere *p_volume, bool earlyout=true) const |
| Intersection test with Sphere. | |
| virtual bool | collision (const math::Vector3 &point, const math::Vector3 &direction, ContactSet *p_set, float tmax) const |
| Collision test with ray. | |
| virtual void | scale (float factor) |
| Scale volume. | |
| virtual Volume * | clone () const |
| Clone volume. | |
| AABB & | operator= (const AABB &aabb) |
| Copy values. | |
Protected Attributes | |
| math::Vector3 | _dim |
| Dimension. | |
| neo::collision::AABB::AABB | ( | const math::Vector3 & | dim = math::Vector3::ZERO |
) | [inline] |
| dim | Dimension |
| neo::collision::AABB::AABB | ( | const math::Vector3 & | globalTrans, | |
| const math::Vector3 & | localTrans, | |||
| const math::Quaternion & | globalRot, | |||
| const math::Quaternion & | localRot, | |||
| const math::Vector3 & | dim | |||
| ) | [inline] |
| globalTrans | Global translation | |
| localTrans | Local translation | |
| globalRot | Global rotation | |
| localRot | Local rotation | |
| dim | Dimension |
| const math::Vector3 & neo::collision::AABB::getDimension | ( | ) | const [inline] |
| void neo::collision::AABB::setDimension | ( | const math::Vector3 & | dim | ) | [inline] |
| dim | New dimension |
| virtual bool neo::collision::AABB::intersect | ( | const math::Vector3 & | point, | |
| bool | earlyout = true | |||
| ) | const [virtual] |
| point | Point | |
| earlyout | If true, perform early-out test with radius |
Implements neo::collision::Volume.
| virtual bool neo::collision::AABB::intersect | ( | const AABB * | p_volume, | |
| bool | earlyout = true | |||
| ) | const [virtual] |
| p_volume | AABB | |
| earlyout | If true, perform early-out test with radius |
Implements neo::collision::Volume.
| virtual bool neo::collision::AABB::intersect | ( | const OBB * | p_volume, | |
| bool | earlyout = true | |||
| ) | const [virtual] |
| p_volume | OBB | |
| earlyout | If true, perform early-out test with radius |
Implements neo::collision::Volume.
| virtual bool neo::collision::AABB::intersect | ( | const Sphere * | p_volume, | |
| bool | earlyout = true | |||
| ) | const [virtual] |
| p_volume | Sphere | |
| earlyout | If true, perform early-out test with radius |
Implements neo::collision::Volume.
| virtual bool neo::collision::AABB::collision | ( | const math::Vector3 & | point, | |
| const math::Vector3 & | direction, | |||
| ContactSet * | p_set, | |||
| float | tmax | |||
| ) | const [virtual] |
| point | Point of origin | |
| direction | Direction | |
| p_set | Contact set | |
| tmax | Maximum time |
Implements neo::collision::Volume.
| virtual void neo::collision::AABB::scale | ( | float | factor | ) | [virtual] |
| virtual Volume* neo::collision::AABB::clone | ( | ) | const [virtual] |
Create an exact duplicate of this volume
Implements neo::collision::Volume.
Copy values from reference volume
| aabb | Volume to copy values from |
1.5.1