#include <OgrePlane.h>
Inheritance diagram for Ogre::Plane:
Public Types | |
enum | Side { NO_SIDE, POSITIVE_SIDE, NEGATIVE_SIDE } |
The "positive side" of the plane is the half space to which the plane normal points. More... | |
Public Member Functions | |
Plane () | |
Default constructor - sets everything to 0. | |
Plane (const Plane &rhs) | |
Plane (const Vector3 &rkNormal, Real fConstant) | |
Construct a plane through a normal, and a distance to move the plane along the normal. | |
Plane (const Vector3 &rkNormal, const Vector3 &rkPoint) | |
Plane (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2) | |
Side | getSide (const Vector3 &rkPoint) const |
Real | getDistance (const Vector3 &rkPoint) const |
This is a pseudodistance. | |
void | redefine (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2) |
Redefine this plane based on 3 points. | |
Vector3 | projectVector (const Vector3 &v) |
Project a vector onto the plane. | |
bool | operator== (const Plane &rhs) const |
Comparison operator. | |
Public Attributes | |
Vector3 | normal |
Real | d |
Friends | |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, Plane &p) |
Definition at line 49 of file OgrePlane.h.
|
The "positive side" of the plane is the half space to which the plane normal points. The "negative side" is the other half space. The flag "no side" indicates the plane itself. Definition at line 66 of file OgrePlane.h. |
|
Default constructor - sets everything to 0.
|
|
|
|
Construct a plane through a normal, and a distance to move the plane along the normal.
|
|
|
|
|
|
This is a pseudodistance. The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane.
Referenced by Ogre::PlaneBoundedVolume::intersects(). |
|
Referenced by Ogre::PlaneBoundedVolume::intersects(). |
|
Comparison operator.
Definition at line 101 of file OgrePlane.h. |
|
Project a vector onto the plane.
|
|
Redefine this plane based on 3 points.
|
|
|
|
Definition at line 99 of file OgrePlane.h. Referenced by Ogre::Matrix4::operator *(), and operator==(). |
|
Definition at line 98 of file OgrePlane.h. Referenced by Ogre::Matrix4::operator *(), and operator==(). |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:41:41 2006