#include <OgrePCPlane.h>
◆ Side
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.
| Enumerator |
|---|
| NO_SIDE | |
| POSITIVE_SIDE | |
| NEGATIVE_SIDE | |
| BOTH_SIDE | |
◆ PCPlane() [1/4]
| Ogre::PCPlane::PCPlane |
( |
| ) |
|
◆ PCPlane() [2/4]
| Ogre::PCPlane::PCPlane |
( |
const Plane & |
plane | ) |
|
◆ PCPlane() [3/4]
| Ogre::PCPlane::PCPlane |
( |
const Vector3 & |
rkNormal, |
|
|
const Vector3 & |
rkPoint |
|
) |
| |
◆ PCPlane() [4/4]
◆ ~PCPlane()
| Ogre::PCPlane::~PCPlane |
( |
| ) |
|
◆ setFromOgrePlane()
| void Ogre::PCPlane::setFromOgrePlane |
( |
Plane & |
ogrePlane | ) |
|
◆ getPortal()
Returns the Portal that was used to create this plane.
◆ setPortal()
Sets the Portal that was used to create this plane.
◆ getSide() [1/3]
| Side Ogre::Plane::getSide |
( |
const Vector3 & |
rkPoint | ) |
const |
|
inlineinherited |
◆ getSide() [2/3]
◆ getSide() [3/3]
Returns which side of the plane that the given box lies on.
The box is defined as centre/half-size pairs for effectively.
- Parameters
-
| centre | The centre of the box. |
| halfSize | The half-size of the box. |
- Returns
- POSITIVE_SIDE if the box complete lies on the "positive side" of the plane, NEGATIVE_SIDE if the box complete lies on the "negative side" of the plane, and BOTH_SIDE if the box intersects the plane.
◆ getDistance()
| Real Ogre::Plane::getDistance |
( |
const Vector3 & |
rkPoint | ) |
const |
|
inlineinherited |
◆ redefine() [1/2]
◆ redefine() [2/2]
| void Ogre::Plane::redefine |
( |
const Vector3 & |
rkNormal, |
|
|
const Vector3 & |
rkPoint |
|
) |
| |
|
inlineinherited |
◆ projectVector()
Project a vector onto the plane.
- Parameters
-
◆ normalise()
| Real Ogre::Plane::normalise |
( |
void |
| ) |
|
|
inlineinherited |
Normalises the plane.
- Note
- This function will not crash for zero-sized vectors, but there will be no changes made to their components.
- Returns
- The previous length of the plane's normal.
References Ogre::Vector< dims, T >::length().
◆ operator-()
| Plane Ogre::Plane::operator- |
( |
| ) |
const |
|
inlineinherited |
Get flipped plane, with same location but reverted orientation.
◆ operator==()
| bool Ogre::Plane::operator== |
( |
const Plane & |
rhs | ) |
const |
|
inlineinherited |
◆ operator!=()
| bool Ogre::Plane::operator!= |
( |
const Plane & |
rhs | ) |
const |
|
inlineinherited |
◆ normal
The documentation for this class was generated from the following file: