41 template <
class Type>
class SbVec3;
48 this->normal.normalize();
52 this->normal = (p1 - p0).cross(p2 - p0);
53 assert(this->normal.sqrLength() != 0.0f);
54 this->normal.normalize();
55 this->distance = this->normal.dot(p0);
59 return point.
dot(this->normal) - this->distance;
66 void offset(
const Type d) {
75 return this->distance;
84 #endif // !COIN_SBPLANE_H SbBool isInHalfSpace(const SbVec3f &point) const
float getDistanceFromOrigin(void) const
void offset(const float d)
Type dot(const SbVec3< Type > &v) const
Definition: SbVec3.h:76
const SbVec3f & getNormal(void) const
float getDistance(const SbVec3f &point) const