Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Types | Public Member Functions | Public Attributes | List of all members
Procedural::Plane Class Reference

Extends the Ogre::Plane class to be able to compute the intersection between 2 planes. More...

#include <ProceduralGeometryHelpers.h>

Inheritance diagram for Procedural::Plane:
Inheritance graph
[legend]

Public Types

enum  Side
 

Public Member Functions

 Plane ()
 
 Plane (const Ogre::Vector3 &normal, const Ogre::Vector3 &pos)
 Contructor with arguments. More...
 
 Plane (Ogre::Real a, Ogre::Real b, Ogre::Real c, Ogre::Real d)
 
bool intersect (const Plane &other, Line &outputLine) const
 Checks whether 2 planes intersect and compute intersecting line if it is the case. More...
 
Real getDistance (const Vector3 &rkPoint) const
 
Side getSide (const AxisAlignedBox &box) const
 
Side getSide (const Vector3 &centre, const Vector3 &halfSize) const
 
Side getSide (const Vector3 &rkPoint) const
 
Real normalise (void)
 
bool operator!= (const Plane &rhs) const
 
Plane operator- () const
 
bool operator== (const Plane &rhs) const
 
Vector3 projectVector (const Vector3 &v) const
 
void redefine (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2)
 
void redefine (const Vector3 &rkNormal, const Vector3 &rkPoint)
 

Public Attributes

 BOTH_SIDE
 
 NEGATIVE_SIDE
 
 NO_SIDE
 
 POSITIVE_SIDE
 
Real d
 
Vector3 normal
 

Detailed Description

Extends the Ogre::Plane class to be able to compute the intersection between 2 planes.

Constructor & Destructor Documentation

◆ Plane() [1/3]

Procedural::Plane::Plane ( )

◆ Plane() [2/3]

Procedural::Plane::Plane ( const Ogre::Vector3 normal,
const Ogre::Vector3 pos 
)

Contructor with arguments.

◆ Plane() [3/3]

Procedural::Plane::Plane ( Ogre::Real  a,
Ogre::Real  b,
Ogre::Real  c,
Ogre::Real  d 
)

Member Function Documentation

◆ intersect()

bool Procedural::Plane::intersect ( const Plane other,
Line outputLine 
) const

Checks whether 2 planes intersect and compute intersecting line if it is the case.

Parameters
otherthe other plane with which to check for intersection
outputLinethe intersecting line, if planes actually intersect
Returns
true if planes intersect, false otherwise

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