Murl::Math::Frustum< DataType > Class Template Reference
A frustum describing 6 planes. More...
#include "murl_math_frustum.h"
Public Types | |
| enum | ClipPlane { CLIP_PLANE_LEFT, CLIP_PLANE_RIGHT, CLIP_PLANE_TOP, CLIP_PLANE_BOTTOM, CLIP_PLANE_NEAR, CLIP_PLANE_FAR, NUM_CLIP_PLANES } |
| Enumeration of the frustum planes. More... | |
| using | ValueType = DataType |
| The template parameter value type. | |
Public Member Functions | |
| Frustum () | |
| The default constructor. | |
| Frustum (const Matrix< DataType > &projectionMatrix) | |
| Constructor taking a projection matrix. More... | |
| template<class DataType2 > | |
| Frustum (const Frustum< DataType2 > &f) | |
| The copy constructor using a frustum of different type. More... | |
| void | Set (const Matrix< DataType > &projectionMatrix) |
| Set the frustum planes by a projection matrix. More... | |
| const Plane< DataType > & | GetClipPlane (ClipPlane plane) const |
| Get a plane by identifier. More... | |
Protected Attributes | |
| Plane< DataType > | mClipPlanes [NUM_CLIP_PLANES] |
| The plane storage array. | |
Detailed Description
template<class DataType>
class Murl::Math::Frustum< DataType >
A frustum describing 6 planes.
Member Enumeration Documentation
◆ ClipPlane
template<class DataType >
| enum Murl::Math::Frustum::ClipPlane |
Constructor & Destructor Documentation
◆ Frustum() [1/2]
template<class DataType >
|
inline |
Constructor taking a projection matrix.
- Parameters
-
projectionMatrix The projection matrix.
◆ Frustum() [2/2]
template<class DataType >
template<class DataType2 >
|
inline |
The copy constructor using a frustum of different type.
- Parameters
-
f The frustum to copy.
Member Function Documentation
◆ Set()
template<class DataType >
|
inline |
Set the frustum planes by a projection matrix.
- Parameters
-
projectionMatrix The projection matrix.
Referenced by Murl::Math::Frustum< Real >::Frustum().
◆ GetClipPlane()
template<class DataType >
|
inline |
Get a plane by identifier.
- Parameters
-
plane The enumerated plane identifer.
- Returns
- The plane.
Referenced by Murl::Math::Cone< Real >::Set().
The documentation for this class was generated from the following files:
- murl_graph_types.h
- murl_math_frustum.h