#include <plane3.h>
Public Types | |
typedef Point3< T > | PointType |
typedef T | ScalarType |
Public Member Functions | |
Members to access the distance or direction | |
Direction() cannot be assigned directly. Use SetDirection() or Set() instead. This is mandatory to make possible the automatic autonormalization template mechanism. Note that if you have to set both direction and offset it can be more efficient to set them toghether | |
const PointType & | Direction () const |
void | Init (const PointType &p0, const PointType &norm) |
Calculates the plane passing through a point and the normal (Rename this method. | |
void | Init (const PointType &p0, const PointType &p1, const PointType &p2) |
Calculates the plane passing through three points (Rename this method). | |
void | Normalize () |
Function to normalize direction. | |
ScalarType & | Offset () |
const ScalarType & | Offset () const |
bool | operator!= (Plane3 const &p) const |
Operator to dispare two lines. | |
bool | operator== (Plane3 const &p) const |
Operator to compare two lines. | |
PointType | Projection (const PointType &p) const |
Project a point on the plane. | |
void | Set (const PointType &dir, const ScalarType &off) |
void | Set (const ScalarType &off, const PointType &dir) |
sets origin and direction. | |
void | SetDirection (const PointType &dir) |
sets the direction | |
void | SetOffset (const ScalarType &o) |
sets the origin | |
Constructors | |
template<class Q > | |
void | Import (const Plane3< Q, false > &b) |
Plane3 (const ScalarType &dist, const PointType &dir) | |
The (distance, direction) constructor. | |
Plane3 () | |
The empty constructor. | |
Private Attributes | |
PointType | _dir |
Direction (not necessarily normalized unless NORM is true). | |
ScalarType | _offset |
Distance. |
Templated class for 2D planes in 3D spaces. This is the class for infinite planes in 3D space. A Plane is stored just as a Point3 and a scalar: a direction (not necessarily normalized), and a distance from the origin
T | (template parameter) Specifies the type of scalar used to represent coords. | |
NORM,: | if on, the direction is always Normalized |
Definition at line 82 of file plane3.h.
typedef T vcg::Plane3< T, NORM >::ScalarType |