Axis Aligned Bounding Box (AABB), usually caculate some rough but fast collision detection.
More...
#include <CCAABB.h>
|
| AABB () |
| Constructor. More...
|
|
| AABB (const Vec3 &min, const Vec3 &max) |
| Constructor. More...
|
|
| AABB ( var min, var max) |
| Constructor. More...
|
|
| AABB ( local min, local max) |
| Constructor. More...
|
|
| AABB (const AABB &box) |
| Constructor. More...
|
|
| AABB ( var box) |
| Constructor. More...
|
|
| AABB ( local box) |
| Constructor. More...
|
|
Vec3 | getCenter () |
| Gets the center point of the bounding box. More...
|
|
void | getCorners (Vec3 *dst) const |
var | getCorners ( var dst) |
local | getCorners ( local dst) |
bool | intersects (const AABB &aabb) const |
| Tests whether this bounding box intersects the specified bounding object. More...
|
|
var | intersects ( var aabb) |
| Tests whether this bounding box intersects the specified bounding object. More...
|
|
local | intersects ( local aabb) |
| Tests whether this bounding box intersects the specified bounding object. More...
|
|
bool | containPoint (const Vec3 &point) const |
| check whether the point is in. More...
|
|
var | containPoint ( var point) |
| check whether the point is in. More...
|
|
local | containPoint ( local point) |
| check whether the point is in. More...
|
|
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. More...
|
|
void | set (const Vec3 &min, const Vec3 &max) |
| Sets this bounding box to the specified values. More...
|
|
var | set ( var min, var max) |
| Sets this bounding box to the specified values. More...
|
|
local | set ( local min, local max) |
| Sets this bounding box to the specified values. More...
|
|
void | reset () |
| Reset min and max value.If you invoke this method, isEmpty() shall return true. More...
|
|
bool | isEmpty () const |
| check the AABB object is empty(reset). More...
|
|
void | updateMinMax (const Vec3 *point, ssize_t num) |
| update the _min and _max from the given point. More...
|
|
var | updateMinMax ( var point, var num) |
| update the _min and _max from the given point. More...
|
|
local | updateMinMax ( local point, local num) |
| update the _min and _max from the given point. More...
|
|
void | transform (const Mat4 &mat) |
| Transforms the bounding box by the given transformation matrix. More...
|
|
Axis Aligned Bounding Box (AABB), usually caculate some rough but fast collision detection.
var AABB |
( |
var |
min, |
|
|
var |
max |
|
) |
| |
local AABB |
( |
local |
min, |
|
|
local |
max |
|
) |
| |
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.
Gets the center point of the bounding box.
Gets the center point of the bounding box.
Gets the center point of the bounding box.
void getCorners |
( |
Vec3 * |
dst | ) |
const |
var getCorners |
( |
var |
dst | ) |
|
local getCorners |
( |
local |
dst | ) |
|
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.
check the AABB object is empty(reset).
check the AABB object is empty(reset).
check the AABB object is empty(reset).
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.
Sets this bounding box to the smallest bounding box that contains both this bounding object and the specified bounding box.
Sets this bounding box to the smallest bounding box that contains both this bounding object and the specified bounding box.
Reset min and max value.If you invoke this method, isEmpty() shall return true.
Reset min and max value.If you invoke this method, isEmpty() shall return true.
Reset min and max value.If you invoke this method, isEmpty() shall return true.
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 transform |
( |
const Mat4 & |
mat | ) |
|
Transforms the bounding box by the given transformation matrix.
Transforms the bounding box by the given transformation matrix.
local transform |
( |
local |
mat | ) |
|
Transforms the bounding box by the given transformation matrix.
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.
The documentation for this class was generated from the following file:
- /Users/minggo/SourceCode/cocos2d-x/cocos/3d/CCAABB.h