A cylinder class describing a cylinder by its radius and length.
More...
#include <murl_math_cylinder.h>
template<class DataType>
class Murl::Math::Cylinder< DataType >
A cylinder class describing a cylinder by its radius and length.
◆ ValueType
The template parameter value type.
◆ Cylinder() [1/3]
Constructor taking cylinder length and radius.
- Parameters
-
length | The length of the cylinder. |
radius | The radius of the cylinder. |
◆ Cylinder() [2/3]
Constructor taking a box.
- Parameters
-
◆ Cylinder() [3/3]
template<class DataType>
template<class DataType2 >
The copy constructor using a cylinder of different type.
- Parameters
-
◆ GetLength()
Get the length.
- Returns
- The length.
◆ GetRadius()
Get the radius.
- Returns
- The radius.
◆ Set() [1/2]
Set the cylinder by a box.
- Parameters
-
◆ Set() [2/2]
Set the cylinder from a sheared box.
- Parameters
-
box | The box. |
shearX | The shear value in X direction. |
shearY | The shear value in Y direction. |
◆ IsIntersecting()
Check if the cylinder is intersecting a sphere.
- Parameters
-
sphere | The sphere to check. |
- Returns
- true if the cylinder is intersecting the sphere.
◆ ToString()
Get the string representation of the object.
- Returns
- The string representation of the object.
◆ mLength
The length of the cylinder.
◆ mRadius
The radius of the cylinder.
◆ mOffsetX
◆ mOffsetY
◆ mShearX
◆ mShearY
The documentation for this class was generated from the following files:
- murl_graph_types.h
- murl_math_cylinder.h