igor::iFrustum< T > Class Template Reference

#include <iFrustum.h>

Public Member Functions

bool operator== (const iFrustum< T > &frustum) const
 
bool operator!= (const iFrustum< T > &frustum) const
 
 iFrustum ()=default
 
 iFrustum (const iaMatrix< T > &matrix)
 
void set (const iaMatrix< T > &matrix)
 
virtual ~iFrustum ()=default
 

Public Attributes

iPlane< T > _leftPlane
 
iPlane< T > _rightPlane
 
iPlane< T > _topPlane
 
iPlane< T > _bottomPlane
 
iPlane< T > _nearPlane
 
iPlane< T > _farPlane
 

Detailed Description

template<class T>
class igor::iFrustum< T >

frustum defined by 8 planes

Constructor & Destructor Documentation

◆ iFrustum() [1/2]

template<class T >
igor::iFrustum< T >::iFrustum ( )
default

default ctor

◆ iFrustum() [2/2]

template<class T >
iFrustum::iFrustum ( const iaMatrix< T > &  matrix)

init with projection matrix

Parameters
matrixprojection matrix

◆ ~iFrustum()

template<class T >
virtual igor::iFrustum< T >::~iFrustum ( )
virtualdefault

does nothing

Member Function Documentation

◆ operator!=()

template<class T >
IGOR_INLINE bool iFrustum::operator!= ( const iFrustum< T > &  frustum) const

negated comparison of two frustums

Parameters
frustumthe second frustum
Returns
true if frustums are not equal

◆ operator==()

template<class T >
IGOR_INLINE bool iFrustum::operator== ( const iFrustum< T > &  frustum) const

comparison of two frustums

Parameters
frustumthe second frustum to compare
Returns
true if frustums are equal

◆ set()

template<class T >
void iFrustum::set ( const iaMatrix< T > &  matrix)

uses projection matrix to calculate all planes of the frustum

http://www.racer.nl/reference/vfc.htm

Parameters
matrixprojection matrix

Member Data Documentation

◆ _bottomPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_bottomPlane

bottom plane of frustum

◆ _farPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_farPlane

far plane of frustum

◆ _leftPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_leftPlane

left plane of frustum

◆ _nearPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_nearPlane

near plane of frustum

◆ _rightPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_rightPlane

right plane of frustum

◆ _topPlane

template<class T >
iPlane<T> igor::iFrustum< T >::_topPlane

top plane of frustum


The documentation for this class was generated from the following files: