26#include <Inventor/SbVec.h>
131 {
return !(p1 == p2); }
142 enum PlanePlaneIntersectionResult
144 DISJOINT_PARALLEL_PLANES = 0,
145 COINCIDENT_PLANES = 1,
155 PlanePlaneIntersectionResult
intersect(
const SbPlane &p,
SbLine &intersection,
float angTol = 10.e-3f )
const;
SbBool intersect(const SbLine &l, SbVec3f &intersection) const
Intersect line and plane, returning TRUE if there is an intersection, FALSE if line is parallel to pl...
float getDistanceFromOrigin() const
Returns distance from origin to plane.
float getDistance(const SbVec3f &point) const
Returns the distance from a point to plane.
void transform(const SbMatrix &matrix)
Transforms the plane by the given matrix.
friend int operator!=(const SbPlane &p1, const SbPlane &p2)
Inequality comparison operator.
SbPlane()
Default constructor.
SbPlane(const SbVec3f &normal, float distance)
Constructor.
void offset(float d)
Offset a plane by a given distance.
friend int operator==(const SbPlane &p1, const SbPlane &p2)
Equality comparison operator.
const SbVec3f & getNormal() const
Returns normal vector to plane.
SbPlane(const SbVec3f &p0, const SbVec3f &p1, const SbVec3f &p2)
Constructor.
SbPlane(const SbVec3f &normal, const SbVec3f &point)
Constructor.
SbBool isInHalfSpace(const SbVec3f &point) const
Returns TRUE if the given point is within the half-space defined by the plane.