#include <Plane.h>
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. More... | |
void | set (const Vec3< T > &point, const Vec3< T > &normal) |
Defines a plane using a normal vector and a point. More... | |
void | set (T a, T b, T c, T d) |
Defines a plane using 4 coefficients. More... | |
Vec3< T > | getPoint () const |
const Vec3< T > & | getNormal () const |
T | getDistance () const |
T | distance (const Vec3< T > &p) const |
Vec3< T > | reflectPoint (const Vec3< T > &p) const |
Vec3< T > | reflectVector (const Vec3< T > &v) const |
Public Attributes | |
Vec3< T > | mNormal |
T | mDistance |
cinder::Plane< T >::Plane | ( | ) |
cinder::Plane< T >::Plane | ( | const Vec3< T > & | v1, |
const Vec3< T > & | v2, | ||
const Vec3< T > & | v3 | ||
) |
cinder::Plane< T >::Plane | ( | const Vec3< T > & | point, |
const Vec3< T > & | normal | ||
) |
cinder::Plane< T >::Plane | ( | T | a, |
T | b, | ||
T | c, | ||
T | d | ||
) |
void cinder::Plane< T >::set | ( | const Vec3< T > & | v1, |
const Vec3< T > & | v2, | ||
const Vec3< T > & | v3 | ||
) |
Defines a plane using 3 points.
void cinder::Plane< T >::set | ( | const Vec3< T > & | point, |
const Vec3< T > & | normal | ||
) |
Defines a plane using a normal vector and a point.
void cinder::Plane< T >::set | ( | T | a, |
T | b, | ||
T | c, | ||
T | d | ||
) |
Defines a plane using 4 coefficients.
Vec3<T> cinder::Plane< T >::getPoint | ( | ) | const |
const Vec3<T>& cinder::Plane< T >::getNormal | ( | ) | const |
T cinder::Plane< T >::getDistance | ( | ) | const |
T cinder::Plane< T >::distance | ( | const Vec3< T > & | p | ) | const |
Vec3<T> cinder::Plane< T >::reflectPoint | ( | const Vec3< T > & | p | ) | const |
Vec3<T> cinder::Plane< T >::reflectVector | ( | const Vec3< T > & | v | ) | const |
Vec3<T> cinder::Plane< T >::mNormal |
T cinder::Plane< T >::mDistance |