Public Member Functions | |
| Ray () | |
| Ray (Vector3 origin, Vector3 direction) | |
| Pair | Intersects (AxisAlignedBox box) |
Static Public Member Functions | |
| Vector3 | operator * (Ray ray, float t) |
Properties | |
| Vector3 | Origin |
| Vector3 | Direction |
|
|
Default constructor. |
|
||||||||||||
|
Constructor. Starting point of the ray. Direction the ray is pointing. |
|
|
Tests whether this ray intersects the given box. |
|
||||||||||||
|
Gets the position of a point t units along the ray. |
|
|
Gets/Sets the direction this ray is pointing. A ray has no length, so the direction goes to infinity. |
|
|
Gets/Sets the origin of the ray. |
1.3.6