53 void print(
const char* name);
Defines a plane in 3D space with the equation ax + by + cy + d = 0.
void setCoefficients(const SLfloat A, const SLfloat B, const SLfloat C, const SLfloat D)
SLfloat distToPoint(const SLVec3f &p)
Returns distance between a point P and the plane.
SLfloat d
d = -(ax+by+cy) = -normal.dot(point)
void setPoints(const SLVec3f &v1, const SLVec3f &v2, const SLVec3f &v3)
void print(const char *name)
void setNormalAndPoint(const SLVec3f &N, const SLVec3f &P)
void set(const T X, const T Y, const T Z)
T dot(const SLVec3 &v) const
V3 v3(float x, float y, float z)