#include <CCRay.h>
|
| Ray () |
| Constructor. More...
|
|
| Ray () |
| Constructor. More...
|
|
| Ray () |
| Constructor. More...
|
|
| Ray (const Ray &ray) |
| Constructor. More...
|
|
| Ray ( var ray) |
| Constructor. More...
|
|
| Ray ( local ray) |
| Constructor. More...
|
|
| Ray (const Vec3 &origin, const Vec3 &direction) |
| Constructs a new ray initialized to the specified values. More...
|
|
| Ray ( var origin, var direction) |
| Constructs a new ray initialized to the specified values. More...
|
|
| Ray ( local origin, local direction) |
| Constructs a new ray initialized to the specified values. More...
|
|
| ~Ray () |
| Destructor. More...
|
|
bool | intersects (const AABB &aabb) const |
| Check whether this ray intersects the specified bounding box. More...
|
|
var | intersects ( var aabb) |
| Check whether this ray intersects the specified bounding box. More...
|
|
local | intersects ( local aabb) |
| Check whether this ray intersects the specified bounding box. More...
|
|
bool | intersects (const OBB &obb) const |
| Check whether this ray intersects the specified obb. More...
|
|
void | set (const Vec3 &origin, const Vec3 &direction) |
| Sets this ray to the specified values. More...
|
|
var | set ( var origin, var direction) |
| Sets this ray to the specified values. More...
|
|
local | set ( local origin, local direction) |
| Sets this ray to the specified values. More...
|
|
void | transform (const Mat4 &matrix) |
| Transforms this ray by the given transformation matrix. More...
|
|
Constructs a new ray initialized to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
var Ray |
( |
var |
origin, |
|
|
var |
direction |
|
) |
| |
Constructs a new ray initialized to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
local Ray |
( |
local |
origin, |
|
|
local |
direction |
|
) |
| |
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.
var intersects |
( |
var |
aabb | ) |
|
Check whether this ray intersects the specified bounding box.
local intersects |
( |
local |
aabb | ) |
|
Check whether this ray intersects the specified bounding box.
bool intersects |
( |
const OBB & |
obb | ) |
const |
Check whether this ray intersects the specified obb.
var intersects |
( |
var |
obb | ) |
|
Check whether this ray intersects the specified obb.
local intersects |
( |
local |
obb | ) |
|
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. |
var set |
( |
var |
origin, |
|
|
var |
direction |
|
) |
| |
Sets this ray to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
local set |
( |
local |
origin, |
|
|
local |
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. |
var transform |
( |
var |
matrix | ) |
|
Transforms this ray by the given transformation matrix.
- Parameters
-
matrix | The transformation matrix to transform by. |
local transform |
( |
local |
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/guanghui/cocos2d-x-v2/cocos/3d/CCRay.h