![]() |
Murl Engine API
Version 2018.3
|
A cone class describing a cone by its angle and length. More...
#include <murl_math_cone.h>
A cone class describing a cone by its angle and length.
Public Types | |
typedef DataType | ValueType |
The template parameter value type. More... | |
Public Member Functions | |
Cone () | |
The default constructor. | |
Cone (DataType length, DataType angle) | |
Constructor taking cone length and angle. More... | |
Cone (const Frustum< DataType > &frustum) | |
Constructor taking a frustum. More... | |
template<class DataType2 > | |
Cone (const Cone< DataType2 > &c) | |
The copy constructor using a cone of different type. More... | |
DataType | GetLength () const |
Get the length. More... | |
DataType | GetAngle () const |
Get the angle. More... | |
void | Set (const Frustum< DataType > &frustum) |
Set the cone by a frustum. More... | |
Bool | IsIntersecting (const Sphere< DataType > &sphere) const |
Check if the cone is intersecting a sphere. More... | |
String | ToString () const |
Get the string representation of the object. More... | |
Protected Attributes | |
DataType | mLength |
The length of the cone. More... | |
DataType | mAngle |
The angle of the cone. More... | |
DataType | mSin |
The sine of the angle. More... | |
DataType | mCos |
The cosine of the angle. More... | |
DataType | mTan |
The tangent of the angle. More... | |
DataType | mShearX |
The X shear value. More... | |
DataType | mShearY |
The Y shear value. More... | |
typedef DataType Murl::Math::Cone< DataType >::ValueType |
The template parameter value type.
|
inline |
Constructor taking cone length and angle.
length | The length of the cone. |
angle | The angle of the cone. |
|
inline |
Constructor taking a frustum.
frustum | The frustum. |
|
inline |
The copy constructor using a cone of different type.
c | The cone to copy. |
|
inline |
Get the length.
|
inline |
Get the angle.
|
inline |
Set the cone by a frustum.
frustum | The frustum. |
|
inline |
Check if the cone is intersecting a sphere.
sphere | The sphere to check. |
|
inline |
Get the string representation of the object.
|
protected |
The length of the cone.
|
protected |
The angle of the cone.
|
protected |
The sine of the angle.
|
protected |
The cosine of the angle.
|
protected |
The tangent of the angle.
|
protected |
The X shear value.
|
protected |
The Y shear value.