#include <Inventor/SbLinear.h>
Public Methods | |
SbPlane (void) | |
SbPlane (const SbVec3f &normal, const float D) | |
SbPlane (const SbVec3f &p0, const SbVec3f &p1, const SbVec3f &p2) | |
SbPlane (const SbVec3f &normal, const SbVec3f &point) | |
void | offset (const float d) |
SbBool | intersect (const SbLine &l, SbVec3f &intersection) const |
void | transform (const SbMatrix &matrix) |
SbBool | isInHalfSpace (const SbVec3f &point) const |
float | getDistance (const SbVec3f &point) const |
const SbVec3f & | getNormal (void) const |
float | getDistanceFromOrigin (void) const |
void | print (FILE *file) const |
Friends | |
COIN_DLL_API int | operator== (const SbPlane &p1, const SbPlane &p2) |
COIN_DLL_API int | operator!= (const SbPlane &p1, const SbPlane &p2) |
SbPlane is used by many other classes in Coin. It provides a way of representing a plane, specified by a plane normal vector and a distance from the origin of the coordinate system.
|
An SbPlane instantiated with the default constructor will have undefined behavior. |
|
Construct an SbPlane instance with a normal pointing in the given direction and the given shortest distance from the origin of the coordinate system to a point in the plane. normal must not be a null vector. |
|
Construct an SbPlane with three points lying in the plane. Make sure p0, p1 and p2 are actually three distinct points when using this constructor. |
|
Construct an SbPlane from a normal and a point lying in the plane. normal must not be a null vector. |
|
Add the given offset d to the plane distance from the origin. |
|
Find the point on given line l intersecting the plane and return it in intersection. If the line is parallel to the plane, we return FALSE, otherwise TRUE. Do not pass an invalid line for the l parameter (i.e. with a null direction vector). |
|
Transform the plane by matrix.
|
|
Check if the given point lies in the halfspace of the plane which the plane normal vector is pointing. |
|
Return the distance from point to plane. Positive distance means the point is in the plane's half space. |
|
Return the plane's normal vector, which indicates which direction the plane is oriented.
|
|
Return distance from origin of coordinate system to the point in the plane which is closest to the origin.
|
|
Dump the state of this object to the file stream. Only works in debug version of library, method does nothing in an optimized compile. |
|
Check the two given planes for equality. |
|
Check the two given planes for unequality. |