![]() |
Cinder
0.9.1
|
#include <Plane.h>
Public Types | |
typedef glm::tvec3< T, glm::defaultp > | Vec3T |
Public Member Functions | |
PlaneT () | |
PlaneT (const Vec3T &v1, const Vec3T &v2, const Vec3T &v3) | |
PlaneT (const Vec3T &point, const Vec3T &normal) | |
PlaneT (T a, T b, T c, T d) | |
void | set (const Vec3T &v1, const Vec3T &v2, const Vec3T &v3) |
void | set (const Vec3T &point, const Vec3T &normal) |
void | set (T a, T b, T c, T d) |
Vec3T | getPoint () const |
const Vec3T & | getNormal () const |
T | getDistance () const |
T | distance (const Vec3T &p) const |
Vec3T | reflectPoint (const Vec3T &p) const |
Vec3T | reflectVector (const Vec3T &v) const |
template<typename Vec3Y > | |
void | set (const Vec3Y &v1, const Vec3Y &v2, const Vec3Y &v3) |
Represents a Plane, as a geometric primitive, useful in conducting tests in 3D space.
typedef glm::tvec3<T, glm::defaultp> cinder::PlaneT< T >::Vec3T |
cinder::PlaneT< T >::PlaneT | ( | ) |
cinder::PlaneT< T >::PlaneT | ( | const Vec3T & | v1, |
const Vec3T & | v2, | ||
const Vec3T & | v3 | ||
) |
cinder::PlaneT< T >::PlaneT | ( | const Vec3T & | point, |
const Vec3T & | normal | ||
) |
cinder::PlaneT< T >::PlaneT | ( | T | a, |
T | b, | ||
T | c, | ||
T | d | ||
) |
void cinder::PlaneT< T >::set | ( | const Vec3T & | v1, |
const Vec3T & | v2, | ||
const Vec3T & | v3 | ||
) |
Defines a plane using 3 points.
void cinder::PlaneT< T >::set | ( | const Vec3T & | point, |
const Vec3T & | normal | ||
) |
Defines a plane using a normal vector and a point.
void cinder::PlaneT< T >::set | ( | T | a, |
T | b, | ||
T | c, | ||
T | d | ||
) |
Defines a plane using 4 coefficients.
Vec3T cinder::PlaneT< T >::getPoint | ( | ) | const |
const Vec3T& cinder::PlaneT< T >::getNormal | ( | ) | const |
T cinder::PlaneT< T >::getDistance | ( | ) | const |
T cinder::PlaneT< T >::distance | ( | const Vec3T & | p | ) | const |
Vec3T cinder::PlaneT< T >::reflectPoint | ( | const Vec3T & | p | ) | const |
Vec3T cinder::PlaneT< T >::reflectVector | ( | const Vec3T & | v | ) | const |
void cinder::PlaneT< T >::set | ( | const Vec3Y & | v1, |
const Vec3Y & | v2, | ||
const Vec3Y & | v3 | ||
) |