igor::iPlane< T > Class Template Reference

#include <iPlane.h>

Public Member Functions

IGOR_INLINE void normalize ()
 
 iPlane (iaVector3< T > normal, T distance)
 
 iPlane ()=default
 
virtual ~iPlane ()=default
 

Public Attributes

iaVector3< T > _normal
 
_distance = static_cast<T>(0)
 

Detailed Description

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

a plane

Constructor & Destructor Documentation

◆ iPlane() [1/2]

template<class T >
iPlane::iPlane ( iaVector3< T >  normal,
distance 
)

sets member variables

Parameters
normalthe normal
distancethe distance

◆ iPlane() [2/2]

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

does notthing

◆ ~iPlane()

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

does notthing

Member Function Documentation

◆ normalize()

template<class T >
IGOR_INLINE void iPlane::normalize ( )

normalizes the normal and calculates new distance value

source https://graphics.stanford.edu/~mdfisher/Code/Engine/Plane.cpp.html

Member Data Documentation

◆ _distance

template<class T >
T igor::iPlane< T >::_distance = static_cast<T>(0)

distance from origin of this plane along the normal vector

works like a scalar value

◆ _normal

template<class T >
iaVector3<T> igor::iPlane< T >::_normal

normal vector of plane


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