#include <CCRay.h>
Constructs a new ray initialized to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
bool intersects |
( |
const AABB & |
aabb | ) |
const |
Check whether this ray intersects the specified bounding box.
bool intersects |
( |
const OBB & |
obb | ) |
const |
Check whether this ray intersects the specified obb.
void set |
( |
const Vec3 & |
origin, |
|
|
const Vec3 & |
direction |
|
) |
| |
Sets this ray to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
void transform |
( |
const Mat4 & |
matrix | ) |
|
Transforms this ray by the given transformation matrix.
- Parameters
-
matrix | The transformation matrix to transform by. |
The documentation for this class was generated from the following file:
- /Users/huihoo/Software/huihoo-code/cocos2d-x/cocos2d-x-3.3/cocos/3d/CCRay.h