|
cgv
|
#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) | |
| cgv::math::vec< T > | get_normal () const |
| return the normal vector | |
| T | get_distance () const |
| return the distance of the plane to the origin | |
A plane of arbitrary dimension stored as a homogeneous vector that defines the coefficients of the plane equation.
|
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