0.44.0
|
#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 |
T | _distance = static_cast<T>(0) |
a plane
iPlane::iPlane | ( | iaVector3< T > | normal, |
T | distance | ||
) |
sets member variables
normal | the normal |
distance | the distance |
|
default |
does notthing
|
virtualdefault |
does notthing
IGOR_INLINE void iPlane::normalize | ( | ) |
normalizes the normal and calculates new distance value
source https://graphics.stanford.edu/~mdfisher/Code/Engine/Plane.cpp.html
T igor::iPlane< T >::_distance = static_cast<T>(0) |
distance from origin of this plane along the normal vector
works like a scalar value
iaVector3<T> igor::iPlane< T >::_normal |
normal vector of plane