cgv
|
A plane of arbitrary dimension stored as a homogeneous vector that defines the coefficients of the plane equation. More...
#include <plane.h>
Public Member Functions | |
plane (int dim=3) | |
construct plane of give dimension allocating a homogenous vector of one dimension mor | |
plane (const cgv::math::vec< T > &n, const T &distance) | |
construct from normal vector and distance of plane to origin, which is negated before it is copied to the last component of the stored homogenous vector | |
cgv::math::vec< T > | get_normal () const |
return the normal vector | |
T | get_distance () const |
return the distance of the plane to the origin | |
Public Attributes | |
cgv::math::vec< T > | h |
A plane of arbitrary dimension stored as a homogeneous vector that defines the coefficients of the plane equation.
|
inline |
construct plane of give dimension allocating a homogenous vector of one dimension mor
Definition at line 18 of file plane.h.
References cgv::math::vec< T >::resize().
|
inline |
construct from normal vector and distance of plane to origin, which is negated before it is copied to the last component of the stored homogenous vector
Definition at line 25 of file plane.h.
References cgv::math::vec< T >::resize(), and cgv::math::vec< T >::size().
|
inline |
return the distance of the plane to the origin
Definition at line 42 of file plane.h.
References cgv::math::vec< T >::size().
|
inline |
return the normal vector
Definition at line 33 of file plane.h.
References cgv::math::vec< T >::resize(), and cgv::math::vec< T >::size().
cgv::math::vec<T> cgv::media::plane< T >::h |