Axis Aligned Bounding Box (AABB), usually calculate some rough but fast collision detection. More...
Public Member Functions | |
AABB () | |
Constructor. | |
AABB () | |
Constructor. | |
new () | |
Constructor. | |
AABB (const Vec3 &min, const Vec3 &max) | |
Constructor. | |
AABB ( var min, var max) | |
Constructor. | |
new ( local min, local max) | |
Constructor. | |
AABB (const AABB &box) | |
Constructor. | |
AABB ( var box) | |
Constructor. | |
AABB ( local box) | |
Constructor. | |
Vec3 | getCenter () |
Gets the center point of the bounding box. | |
var | getCenter () |
Gets the center point of the bounding box. | |
local | getCenter () |
Gets the center point of the bounding box. | |
bool | intersects (const AABB &aabb) const |
Tests whether this bounding box intersects the specified bounding object. | |
var | intersects ( var aabb) |
Tests whether this bounding box intersects the specified bounding object. | |
local | intersects ( local aabb) |
Tests whether this bounding box intersects the specified bounding object. | |
bool | containPoint (const Vec3 &point) const |
check whether the point is in. | |
var | containPoint ( var point) |
check whether the point is in. | |
local | containPoint ( local point) |
check whether the point is in. | |
void | merge (const AABB &box) |
Sets this bounding box to the smallest bounding box that contains both this bounding object and the specified bounding box. | |
var | merge ( var box) |
Sets this bounding box to the smallest bounding box that contains both this bounding object and the specified bounding box. | |
local | merge ( local box) |
Sets this bounding box to the smallest bounding box that contains both this bounding object and the specified bounding box. | |
void | set (const Vec3 &min, const Vec3 &max) |
Sets this bounding box to the specified values. | |
var | set ( var min, var max) |
Sets this bounding box to the specified values. | |
local | set ( local min, local max) |
Sets this bounding box to the specified values. | |
void | reset () |
Reset min and max value.If you invoke this method, isEmpty() shall return true. | |
bool | isEmpty () const |
check the AABB object is empty(reset). | |
void | updateMinMax (const Vec3 *point, ssize_t num) |
update the _min and _max from the given point. | |
var | updateMinMax ( var point, var num) |
update the _min and _max from the given point. | |
local | updateMinMax ( local point, local num) |
update the _min and _max from the given point. | |
void | transform (const Mat4 &mat) |
Transforms the bounding box by the given transformation matrix. | |
Axis Aligned Bounding Box (AABB), usually calculate some rough but fast collision detection.