Public Member Functions | Public Attributes
cinder::Plane< T > Class Template Reference

#include <Plane.h>

List of all members.

Public Member Functions

 Plane ()
 Plane (const Vec3< T > &v1, const Vec3< T > &v2, const Vec3< T > &v3)
 Plane (const Vec3< T > &point, const Vec3< T > &normal)
 Plane (T a, T b, T c, T d)
void set (const Vec3< T > &v1, const Vec3< T > &v2, const Vec3< T > &v3)
 Defines a plane using 3 points.
void set (const Vec3< T > &point, const Vec3< T > &normal)
 Defines a plane using a normal vector and a point.
void set (T a, T b, T c, T d)
 Defines a plane using 4 coefficients.
Vec3< T > getPoint () const
const Vec3< T > & getNormal () const
float getDistance () const
float distance (const Vec3f &p) const
Vec3< T > reflectPoint (const Vec3< T > &p) const
Vec3< T > reflectVector (const Vec3< T > &v) const

Public Attributes

Vec3< T > mNormal
mDistance

template<typename T>
class cinder::Plane< T >


Constructor & Destructor Documentation

template<typename T >
cinder::Plane< T >::Plane ( )
template<typename T >
cinder::Plane< T >::Plane ( const Vec3< T > &  v1,
const Vec3< T > &  v2,
const Vec3< T > &  v3 
)
template<typename T >
cinder::Plane< T >::Plane ( const Vec3< T > &  point,
const Vec3< T > &  normal 
)
template<typename T >
cinder::Plane< T >::Plane ( a,
b,
c,
d 
)

Member Function Documentation

template<typename T >
void cinder::Plane< T >::set ( const Vec3< T > &  v1,
const Vec3< T > &  v2,
const Vec3< T > &  v3 
)

Defines a plane using 3 points.

template<typename T >
void cinder::Plane< T >::set ( const Vec3< T > &  point,
const Vec3< T > &  normal 
)

Defines a plane using a normal vector and a point.

template<typename T >
void cinder::Plane< T >::set ( a,
b,
c,
d 
)

Defines a plane using 4 coefficients.

template<typename T >
Vec3<T> cinder::Plane< T >::getPoint ( ) const
template<typename T >
const Vec3<T>& cinder::Plane< T >::getNormal ( ) const
template<typename T >
float cinder::Plane< T >::getDistance ( ) const
template<typename T >
float cinder::Plane< T >::distance ( const Vec3f p) const
template<typename T >
Vec3<T> cinder::Plane< T >::reflectPoint ( const Vec3< T > &  p) const
template<typename T >
Vec3<T> cinder::Plane< T >::reflectVector ( const Vec3< T > &  v) const

Member Data Documentation

template<typename T >
Vec3<T> cinder::Plane< T >::mNormal
template<typename T >
T cinder::Plane< T >::mDistance

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