Torque2D Reference
|
An axis aligned bounding box. More...
#include <b2Collision.h>
Public Member Functions | |
bool | IsValid () const |
Verify that the bounds are sorted. More... | |
b2Vec2 | GetCenter () const |
Get the center of the AABB. More... | |
b2Vec2 | GetExtents () const |
Get the extents of the AABB (half-widths). More... | |
float32 | GetPerimeter () const |
Get the perimeter length. More... | |
void | Combine (const b2AABB &aabb) |
Combine an AABB into this one. More... | |
void | Combine (const b2AABB &aabb1, const b2AABB &aabb2) |
Combine two AABBs into this one. More... | |
bool | Contains (const b2AABB &aabb) const |
Does this aabb contain the provided AABB. More... | |
bool | RayCast (b2RayCastOutput *output, const b2RayCastInput &input) const |
Public Attributes | |
b2Vec2 | lowerBound |
the lower vertex More... | |
b2Vec2 | upperBound |
the upper vertex More... | |
An axis aligned bounding box.
|
inline |
Combine an AABB into this one.
|
inline |
Does this aabb contain the provided AABB.
|
inline |
Get the center of the AABB.
|
inline |
Get the extents of the AABB (half-widths).
|
inline |
Get the perimeter length.
|
inline |
Verify that the bounds are sorted.
bool RayCast | ( | b2RayCastOutput * | output, |
const b2RayCastInput & | input | ||
) | const |
b2Vec2 lowerBound |
the lower vertex
b2Vec2 upperBound |
the upper vertex