My Project
Public Member Functions | Protected Attributes | List of all members
ParaEngine::PCPlane Class Reference

almost the same as Plane, except that it keeps a pointer to the containing portal. More...

#include <PortalFrustum.h>

Inheritance diagram for ParaEngine::PCPlane:
ParaEngine::Plane

Public Member Functions

 PCPlane ()
 Standard constructor.
 
 PCPlane (const Plane &plane)
 Alternative constructor.
 
 PCPlane (const Vector3 &rkNormal, const Vector3 &rkPoint)
 Alternative constructor.
 
 PCPlane (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
 Alternative constructor.
 
void SetPlane (const Plane &plane)
 Copy from a standard Plane.
 
 ~PCPlane ()
 Standard destructor.
 
CPortalNodeGetPortal ()
 Returns the Portal that was used to create this plane.
 
void SetPortal (CPortalNode *o)
 Sets the Portal that was used to create this plane.
 
- Public Member Functions inherited from ParaEngine::Plane
 Plane ()
 Default constructor - sets everything to 0.
 
 Plane (const Plane &rhs)
 
 Plane (const Vector3 &rkNormal, float fConstant)
 Construct a plane through a normal, and a distance to move the plane along the normal. More...
 
 Plane (float a, float b, float c, float d)
 Construct a plane using the 4 constants directly.
 
 Plane (const Vector3 &rkNormal, const Vector3 &rkPoint)
 
 Plane (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
 
Side getSide (const Vector3 &rkPoint) const
 
Side getSide (const AxisAlignedBox &rkBox) const
 returns the side where the aligneBox is. More...
 
Side getSide (const CShapeAABB &rkBox) const
 returns the side where the aligneBox is. More...
 
Side getSide (const Vector3 &centre, const Vector3 &halfSize) const
 Returns which side of the plane that the given box lies on. More...
 
float getDistance (const Vector3 &rkPoint) const
 This is a pseudo distance. More...
 
void redefine (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
 Redefine this plane based on 3 points. More...
 
void redefine (const Vector3 &rkNormal, const Vector3 &rkPoint)
 Redefine this plane based on a normal and a point. More...
 
PlaneSet (float nx, float ny, float nz, float _d)
 
PlaneSet (const Vector3 &p, const Vector3 &_n)
 
PlaneSet (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2)
 
Vector3 projectVector (const Vector3 &v) const
 Project a vector onto the plane. More...
 
float normalise (void)
 Normalizes the plane. More...
 
float PlaneDotCoord (const Vector3 &pV) const
 
float PlaneDotNormal (const Vector3 &pV) const
 
Plane PlaneTransform (const Matrix4 &M) const
 
float a () const
 
float b () const
 
float c () const
 
 operator Vector3 () const
 
 operator Vector4 () const
 
Plane operator* (const Matrix4 &m) const
 
Planeoperator*= (const Matrix4 &m)
 
Plane operator- () const
 
 operator const float * () const
 
 operator float * ()
 
bool operator== (const Plane &rhs) const
 Comparison operator.
 
bool operator!= (const Plane &rhs) const
 

Protected Attributes

CPortalNodem_portal
 Portal used to create this plane.
 

Additional Inherited Members

- Public Types inherited from ParaEngine::Plane
enum  Side { NO_SIDE, POSITIVE_SIDE, NEGATIVE_SIDE, BOTH_SIDE }
 The "positive side" of the plane is the half space to which the plane normal points. More...
 
- Public Attributes inherited from ParaEngine::Plane
Vector3 normal
 
float d
 

Detailed Description

almost the same as Plane, except that it keeps a pointer to the containing portal.


The documentation for this class was generated from the following files: