PlaneF Class Reference#include <mPlane.h>
Inheritance diagram for PlaneF:
[legend]
|
Public Types |
| 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 (const F32 _x, const F32 _y, const F32 _z) |
| void | set (const Point3F &p, const Point3F &n) |
| void | set (const Point3F &k, const Point3F &j, const Point3F &l) |
| | Calculate the coefficients of the plane passing through three points.
|
| 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 (Point3F pt) |
| 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 |
Data Fields |
| 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] |
| void PlaneF::set |
( |
const F32 |
_x, |
|
|
const F32 |
_y, |
|
|
const F32 |
_z | |
|
) |
| | [inline] |
Calculate the coefficients of the plane passing through three points.
Basically it calculates the normal to the three points then calculates a plane through the middle point with that normal.
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] |
| F32 PlaneF::distToPlane |
( |
const Point3F & |
cp |
) |
const [inline] |
| bool PlaneF::isHorizontal |
( |
|
) |
const [inline] |
| bool PlaneF::isVertical |
( |
|
) |
const [inline] |
Field Documentation
|