Ray is a line with one end.
More...
|
| Ray () |
| Constructor.
|
|
| new () |
| Constructor.
|
|
| Ray (const Ray &ray) |
| Constructor.
|
|
| Ray (const Vec3 &origin, const Vec3 &direction) |
| Constructs a new ray initialized to the specified values. More...
|
|
| new ( local origin, local direction) |
| Constructs a new ray initialized to the specified values. More...
|
|
| ~Ray () |
| Destructor.
|
|
bool | intersects (const AABB &aabb, float *distance=nullptr) const |
| Check whether this ray intersects with the specified AABB.
|
|
local | intersects ( local aabb, local 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.
|
|
local | intersects ( local obb, local nullptr) |
| Check whether this ray intersects with the specified OBB.
|
|
void | set (const Vec3 &origin, const Vec3 &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...
|
|
local | transform ( local matrix) |
| Transforms this ray by the given transformation matrix. More...
|
|
Ray is a line with one end.
usually use it to check intersects with some object,such as Plane, OBB, AABB
Constructs a new ray initialized to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
local new |
( |
local |
origin, |
|
|
local |
direction |
|
) |
| |
Constructs a new ray initialized to the specified values.
- Parameters
-
origin | The ray's origin. |
direction | The ray's direction. |
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. |
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. |
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: