#include <CCRay.h>
|
| 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, float *distance=nullptr) const |
| Check whether this ray intersects with the specified AABB. More...
|
|
var | intersects ( var aabb, var nullptr) |
| Check whether this ray intersects with the specified AABB. More...
|
|
local | intersects ( local aabb, local nullptr) |
| Check whether this ray intersects with the specified AABB. More...
|
|
bool | intersects (const OBB &obb, float *distance=nullptr) const |
| Check whether this ray intersects with the specified OBB. More...
|
|
float | dist (const Plane &plane) const |
var | dist ( var plane) |
local | dist ( local plane) |
Vec3 | intersects (const Plane &plane) const |
var | intersects ( var plane) |
local | intersects ( local plane) |
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. |
float dist |
( |
const Plane & |
plane | ) |
const |
local dist |
( |
local |
plane | ) |
|
bool intersects |
( |
const AABB & |
aabb, |
|
|
float * |
distance = nullptr |
|
) |
| const |
Check whether this ray intersects with the specified AABB.
var intersects |
( |
var |
aabb, |
|
|
var |
distance = nullptr |
|
) |
| |
Check whether this ray intersects with the specified AABB.
local intersects |
( |
local |
aabb, |
|
|
local |
distance = nullptr |
|
) |
| |
Check whether this ray intersects with the specified AABB.
bool intersects |
( |
const OBB & |
obb, |
|
|
float * |
distance = nullptr |
|
) |
| const |
Check whether this ray intersects with the specified OBB.
var intersects |
( |
var |
obb, |
|
|
var |
distance = nullptr |
|
) |
| |
Check whether this ray intersects with the specified OBB.
local intersects |
( |
local |
obb, |
|
|
local |
distance = nullptr |
|
) |
| |
Check whether this ray intersects with the specified OBB.
var intersects |
( |
var |
plane | ) |
|
local intersects |
( |
local |
plane | ) |
|
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/huabingxu/work/cocos2d-x/cocos/3d/CCRay.h