Assignments
Assignments
|
#include <geometry.h>
Public Member Functions | |
Plane (void) | |
Plane (const Point< Dim > &n, const Point< Dim > &p) | |
template<typename ... Points> | |
Plane (Points ... points) | |
Plane (Point< Dim > *points) | |
Plane (const Point< Dim > *points) | |
double | operator() (const Point< Dim > &p) const |
Public Attributes | |
Point< Dim > | normal |
double | distance |
This templated class represents a hyperplane in Dim dimensions.
Util::Plane< Dim >::Plane | ( | void | ) |
Default constructor
Util::Plane< Dim >::Plane | ( | const Point< Dim > & | n, |
const Point< Dim > & | p | ||
) |
This constructor generates a plane with normal n, passing through the point p.
Util::Plane< Dim >::Plane | ( | Points ... | points | ) |
This constructor generates a plane that contains the simplex specified by the Dim vertices.
Util::Plane< Dim >::Plane | ( | Point< Dim > * | points | ) |
This constructor generates a plane that contains the simplex specified by the Dim vertices.
Util::Plane< Dim >::Plane | ( | const Point< Dim > * | points | ) |
This constructor generates a plane that contains the simplex specified by the Dim vertices.
double Util::Plane< Dim >::operator() | ( | const Point< Dim > & | p | ) | const |
This method evalues the plane equation at the specified point, returning < p , normal > + distance.
double Util::Plane< Dim >::distance |
(Minus) the normal distance of the plane from the origin
Point< Dim > Util::Plane< Dim >::normal |
The normal of the plane