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
enum Murl::Math::Frustum::ClipPlane |
Constructor & Destructor Documentation
◆ Frustum() [1/2]
|
inline |
Constructor taking a projection matrix.
- Parameters
-
projectionMatrix The projection matrix.
References Murl::Math::Frustum< DataType >::Set().
◆ Frustum() [2/2]
|
inline |
The copy constructor using a frustum of different type.
- Parameters
-
f The frustum to copy.
References Murl::Math::Frustum< DataType >::mClipPlanes, and Murl::Math::Frustum< DataType >::NUM_CLIP_PLANES.
Member Function Documentation
◆ Set()
|
inline |
Set the frustum planes by a projection matrix.
- Parameters
-
projectionMatrix The projection matrix.
References Murl::Math::Frustum< DataType >::CLIP_PLANE_BOTTOM, Murl::Math::Frustum< DataType >::CLIP_PLANE_FAR, Murl::Math::Frustum< DataType >::CLIP_PLANE_LEFT, Murl::Math::Frustum< DataType >::CLIP_PLANE_NEAR, Murl::Math::Frustum< DataType >::CLIP_PLANE_RIGHT, Murl::Math::Frustum< DataType >::CLIP_PLANE_TOP, Murl::Math::Matrix< DataType >::GetWW(), Murl::Math::Matrix< DataType >::GetWX(), Murl::Math::Matrix< DataType >::GetWY(), Murl::Math::Matrix< DataType >::GetWZ(), Murl::Math::Matrix< DataType >::GetXW(), Murl::Math::Matrix< DataType >::GetXX(), Murl::Math::Matrix< DataType >::GetXY(), Murl::Math::Matrix< DataType >::GetXZ(), Murl::Math::Matrix< DataType >::GetYW(), Murl::Math::Matrix< DataType >::GetYX(), Murl::Math::Matrix< DataType >::GetYY(), Murl::Math::Matrix< DataType >::GetYZ(), Murl::Math::Matrix< DataType >::GetZW(), Murl::Math::Matrix< DataType >::GetZX(), Murl::Math::Matrix< DataType >::GetZY(), Murl::Math::Matrix< DataType >::GetZZ(), Murl::Math::Frustum< DataType >::mClipPlanes, Murl::Math::Plane< DataType >::NormalizeSelf(), and Murl::Math::Plane< DataType >::Set().
Referenced by Murl::Math::Frustum< DataType >::Frustum().
◆ GetClipPlane()
|
inline |
Get a plane by identifier.
- Parameters
-
plane The enumerated plane identifer.
- Returns
- The plane.
References Murl::Math::Frustum< DataType >::mClipPlanes.
Referenced by Murl::Math::Cone< DataType >::Set().
The documentation for this class was generated from the following files:
- murl_graph_types.h
- murl_math_frustum.h