PlaneF Class Reference#include <mPlane.h>
Inheritance diagram for PlaneF:
[legend]List of all members.
|
Public Types |
| | Front = 1 |
| | On = 0 |
| | Back = -1 |
| enum | Side {
Front = 1,
On = 0,
Back = -1
} |
Public Member Functions |
| | PlaneF () |
| | PlaneF (const Point3F &p, const Point3F &n) |
| | PlaneF (F32 _x, F32 _y, F32 _z, F32 _d) |
| | PlaneF (const Point3F &j, const Point3F &k, const Point3F &l) |
| bool | operator== (const PlaneF &a) const |
| bool | operator!= (const PlaneF &a) const |
| void | set (F32 _x, F32 _y, F32 _z) |
| void | set (F32 _x, F32 _y, F32 _z, F32 _d) |
| void | set (const Point3F &p, const Point3F &n) |
| void | set (const Point3F &k, const Point3F &j, const Point3F &l) |
| void | setPoint (const Point3F &p) |
| | Calculate the coefficients of the plane passing through a point with the given normal.
|
| void | setXY (F32 zz) |
| void | setYZ (F32 xx) |
| void | setXZ (F32 yy) |
| void | setXY (const Point3F &P, F32 dir) |
| void | setYZ (const Point3F &P, F32 dir) |
| void | setXZ (const Point3F &P, F32 dir) |
| void | shiftX (F32 xx) |
| void | shiftY (F32 yy) |
| void | shiftZ (F32 zz) |
| void | invert () |
| void | neg () |
| Point3F | project (const Point3F &pt) const |
| bool | isOnPlane (const Point3F &cp) const |
| F32 | distToPlane (const Point3F &cp) const |
| Side | whichSide (const Point3F &cp) const |
| F32 | intersect (const Point3F &start, const Point3F &end) const |
| bool | isHorizontal () const |
| bool | isVertical () const |
| Side | whichSideBox (const Point3F ¢er, const Point3F &axisx, const Point3F &axisy, const Point3F &axisz, const Point3F &offset) const |
Public Attributes |
| F32 | d |
Member Enumeration Documentation
Constructor & Destructor Documentation
| PlaneF::PlaneF |
( |
|
) |
[inline] |
Member Function Documentation
| bool PlaneF::operator== |
( |
const PlaneF & |
a |
) |
const [inline] |
| bool PlaneF::operator!= |
( |
const PlaneF & |
a |
) |
const [inline] |
Calculate the coefficients of the plane passing through a point with the given normal.
| void PlaneF::setXY |
( |
F32 |
zz |
) |
[inline] |
| void PlaneF::setYZ |
( |
F32 |
xx |
) |
[inline] |
| void PlaneF::setXZ |
( |
F32 |
yy |
) |
[inline] |
| void PlaneF::shiftX |
( |
F32 |
xx |
) |
[inline] |
| void PlaneF::shiftY |
( |
F32 |
yy |
) |
[inline] |
| void PlaneF::shiftZ |
( |
F32 |
zz |
) |
[inline] |
| void PlaneF::invert |
( |
|
) |
[inline] |
| void PlaneF::neg |
( |
|
) |
[inline] |
| bool PlaneF::isOnPlane |
( |
const Point3F & |
cp |
) |
const [inline] |
| F32 PlaneF::distToPlane |
( |
const Point3F & |
cp |
) |
const [inline] |
| bool PlaneF::isHorizontal |
( |
|
) |
const [inline] |
| bool PlaneF::isVertical |
( |
|
) |
const [inline] |
Member Data Documentation
|