vcg::Plane3< T, NORM > Class Template Reference
[Space]

#include <plane3.h>

List of all members.

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 PointTypeDirection () 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.
ScalarTypeOffset ()
const ScalarTypeOffset () 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.

Detailed Description

template<class T, bool NORM = true>
class vcg::Plane3< T, NORM >

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

Parameters:
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.


Member Typedef Documentation

template<class T, bool NORM = true>
typedef T vcg::Plane3< T, NORM >::ScalarType

Definition at line 84 of file plane3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:04 2013