#include <CCOBB.h>
|
| OBB () |
| OBB () |
| OBB (const AABB &aabb) |
| OBB (const Vec3 *verts, int num) |
| OBB ( var verts, var num) |
| OBB ( local verts, local num) |
bool | containPoint (const Vec3 &point) const |
var | containPoint ( var point) |
local | containPoint ( local point) |
void | set (const Vec3 ¢er, const Vec3 &_xAxis, const Vec3 &_yAxis, const Vec3 &_zAxis, const Vec3 &_extents) |
var | set ( var center, var _xAxis, var _yAxis, var _zAxis, var _extents) |
local | set ( local center, local _xAxis, local _yAxis, local _zAxis, local _extents) |
void | reset () |
void | getCorners (Vec3 *verts) const |
var | getCorners ( var verts) |
local | getCorners ( local verts) |
bool | intersects (const OBB &box) const |
var | intersects ( var box) |
local | intersects ( local box) |
void | transform (const Mat4 &mat) |
| Transforms the obb by the given transformation matrix. More...
|
|
var | transform ( var mat) |
| Transforms the obb by the given transformation matrix. More...
|
|
local | transform ( local mat) |
| Transforms the obb by the given transformation matrix. More...
|
|
|
float | projectPoint (const Vec3 &point, const Vec3 &axis) const |
void | getInterval (const OBB &box, const Vec3 &axis, float &min, float &max) const |
var | getInterval ( var box, var axis, var min, var max) |
local | getInterval ( local box, local axis, local min, local max) |
Vec3 | getEdgeDirection (int index) const |
Vec3 | getFaceDirection (int index) const |
var | getFaceDirection ( var index) |
local | getFaceDirection ( local index) |
OBB |
( |
const Vec3 * |
verts, |
|
|
int |
num |
|
) |
| |
var OBB |
( |
var |
verts, |
|
|
var |
num |
|
) |
| |
local OBB |
( |
local |
verts, |
|
|
local |
num |
|
) |
| |
bool containPoint |
( |
const Vec3 & |
point | ) |
const |
var containPoint |
( |
var |
point | ) |
|
local containPoint |
( |
local |
point | ) |
|
void getCorners |
( |
Vec3 * |
verts | ) |
const |
var getCorners |
( |
var |
verts | ) |
|
local getCorners |
( |
local |
verts | ) |
|
Vec3 getEdgeDirection |
( |
int |
index | ) |
const |
|
protected |
var getEdgeDirection |
( |
var |
index | ) |
|
|
protected |
local getEdgeDirection |
( |
local |
index | ) |
|
|
protected |
Vec3 getFaceDirection |
( |
int |
index | ) |
const |
|
protected |
var getFaceDirection |
( |
var |
index | ) |
|
|
protected |
local getFaceDirection |
( |
local |
index | ) |
|
|
protected |
void getInterval |
( |
const OBB & |
box, |
|
|
const Vec3 & |
axis, |
|
|
float & |
min, |
|
|
float & |
max |
|
) |
| const |
|
protected |
var getInterval |
( |
var |
box, |
|
|
var |
axis, |
|
|
var |
min, |
|
|
var |
max |
|
) |
| |
|
protected |
local getInterval |
( |
local |
box, |
|
|
local |
axis, |
|
|
local |
min, |
|
|
local |
max |
|
) |
| |
|
protected |
bool intersects |
( |
const OBB & |
box | ) |
const |
var intersects |
( |
var |
box | ) |
|
local intersects |
( |
local |
box | ) |
|
float projectPoint |
( |
const Vec3 & |
point, |
|
|
const Vec3 & |
axis |
|
) |
| const |
|
protected |
var projectPoint |
( |
var |
point, |
|
|
var |
axis |
|
) |
| |
|
protected |
local projectPoint |
( |
local |
point, |
|
|
local |
axis |
|
) |
| |
|
protected |
void set |
( |
const Vec3 & |
center, |
|
|
const Vec3 & |
_xAxis, |
|
|
const Vec3 & |
_yAxis, |
|
|
const Vec3 & |
_zAxis, |
|
|
const Vec3 & |
_extents |
|
) |
| |
var set |
( |
var |
center, |
|
|
var |
_xAxis, |
|
|
var |
_yAxis, |
|
|
var |
_zAxis, |
|
|
var |
_extents |
|
) |
| |
local set |
( |
local |
center, |
|
|
local |
_xAxis, |
|
|
local |
_yAxis, |
|
|
local |
_zAxis, |
|
|
local |
_extents |
|
) |
| |
void transform |
( |
const Mat4 & |
mat | ) |
|
Transforms the obb by the given transformation matrix.
Transforms the obb by the given transformation matrix.
local transform |
( |
local |
mat | ) |
|
Transforms the obb by the given transformation matrix.
The documentation for this class was generated from the following file:
- /Users/guanghui/cocos2d-x-v2/cocos/3d/CCOBB.h