cgv
cgv::media::plane< T > Class Template Reference

#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
 
get_distance () const
 return the distance of the plane to the origin
 

Detailed Description

template<class T>
class cgv::media::plane< T >

A plane of arbitrary dimension stored as a homogeneous vector that defines the coefficients of the plane equation.

Constructor & Destructor Documentation

◆ plane()

template<class T >
cgv::media::plane< T >::plane ( const cgv::math::vec< T > &  n,
const T &  distance 
)
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


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