#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]
◆ PCPlane() [3/4]
◆ PCPlane() [4/4]
◆ ~PCPlane()
Ogre::PCPlane::~PCPlane |
( |
| ) |
|
◆ getDistance()
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.
- The absolute value of the return value is the true distance only when the plane normal is a unit length vector.
Referenced by Ogre::PlaneBoundedVolume::intersects().
◆ getPortal()
Returns the Portal that was used to create this plane.
◆ getSide() [1/3]
Returns the side where the alignedBox is.
The flag BOTH_SIDE indicates an intersecting box. One corner ON the plane is sufficient to consider the box and the plane intersecting.
◆ getSide() [2/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.
◆ getSide() [3/3]
◆ normalise()
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.
◆ operator!=()
◆ operator-()
Plane Ogre::Plane::operator- |
( |
| ) |
const |
|
inlineinherited |
◆ operator==()
◆ projectVector()
Project a vector onto the plane.
- Parameters
-
◆ redefine() [1/2]
Redefine this plane based on a normal and a point.
◆ redefine() [2/2]
Redefine this plane based on 3 points.
◆ setFromOgrePlane()
void Ogre::PCPlane::setFromOgrePlane |
( |
Plane & |
ogrePlane | ) |
|
◆ setPortal()
Sets the Portal that was used to create this plane.
◆ normal
The documentation for this class was generated from the following file: