![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
A ray class.
The default constructor. This creates a ray starting at (0/0/0) and pointing towards the positive Z axis.
Murl.Math.Ray new()
Constructor taking origin and direction vectors.
Murl.Math.Ray new(Murl.Math.Vector origin, Murl.Math.Vector direction)
origin | The ray origin. |
direction | The ray direction. |
Copy the content of a source ray to the ray instance.
Set(Murl.Math.Ray other)
other | The ray to copy from. |
Set a ray from given origin and direction vectors.
Set(Murl.Math.Vector origin, Murl.Math.Vector direction)
origin | The ray origin. |
direction | The ray direction. |
Set the ray origin.
SetOrigin(Murl.Math.Vector origin)
origin | The ray origin. |
Get the ray origin.
Murl.Math.Vector GetOrigin()
Set the ray direction.
SetDirection(Murl.Math.Vector direction)
direction | The ray direction. |
Get the ray direction.
Murl.Math.Vector GetDirection()