![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
A cylinder class describing a cylinder by its radius and length.
The default constructor.
Murl.Math.Cylinder new()
Constructor taking cylinder length and radius.
Murl.Math.Cylinder new(Number length, Number radius)
length | The length of the cylinder. |
radius | The radius of the cylinder. |
Constructor taking a box.
Murl.Math.Cylinder new(Murl.Math.Box box)
box | The box. |
Get the length.
Number GetLength()
Get the radius.
Number GetRadius()
Set the cylinder by a box.
Set(Murl.Math.Box box)
box | The box. |
Set the cylinder from a sheared box.
Set(Murl.Math.Box box, Number shearX, Number shearY)
box | The box. |
shearX | The shear value in X direction. |
shearY | The shear value in Y direction. |
Check if the cylinder is intersecting a sphere.
Boolean IsIntersecting(Murl.Math.Sphere sphere)
sphere | The sphere to check. |
Get the string representation of the object.
String ToString()
Converts the object content to a string in a reasonable format.