Represents a convex volume bounded by planes. More...
#include <OgrePlaneBoundedVolume.h>
Public Types | |
typedef vector< Plane >::type | PlaneList |
Public Member Functions | |
PlaneBoundedVolume () | |
PlaneBoundedVolume (Plane::Side theOutside) | |
Constructor, determines which side is deemed to be 'outside'. | |
bool | intersects (const AxisAlignedBox &box) const |
Intersection test with AABB. | |
bool | intersects (const Sphere &sphere) const |
Intersection test with Sphere. | |
std::pair< bool, Real > | intersects (const Ray &ray) |
Intersection test with a Ray. | |
Public Attributes | |
PlaneList | planes |
Publicly accessible plane list, you can modify this direct. | |
Plane::Side | outside |
Represents a convex volume bounded by planes.
Definition at line 48 of file OgrePlaneBoundedVolume.h.
typedef vector<Plane>::type Ogre::PlaneBoundedVolume::PlaneList |
Definition at line 51 of file OgrePlaneBoundedVolume.h.
Ogre::PlaneBoundedVolume::PlaneBoundedVolume | ( | ) |
Definition at line 56 of file OgrePlaneBoundedVolume.h.
Ogre::PlaneBoundedVolume::PlaneBoundedVolume | ( | Plane::Side | theOutside | ) |
Constructor, determines which side is deemed to be 'outside'.
Definition at line 58 of file OgrePlaneBoundedVolume.h.
Intersection test with a Ray.
Definition at line 120 of file OgrePlaneBoundedVolume.h.
References Ogre::Math::intersects(), and Ogre::Plane::POSITIVE_SIDE.
bool Ogre::PlaneBoundedVolume::intersects | ( | const Sphere & | sphere | ) | const |
Intersection test with Sphere.
Definition at line 95 of file OgrePlaneBoundedVolume.h.
References Ogre::Sphere::getCenter(), Ogre::Plane::getDistance(), Ogre::Sphere::getRadius(), and Ogre::Plane::NEGATIVE_SIDE.
bool Ogre::PlaneBoundedVolume::intersects | ( | const AxisAlignedBox & | box | ) | const |
Intersection test with AABB.
Definition at line 64 of file OgrePlaneBoundedVolume.h.
References Ogre::AxisAlignedBox::getCenter(), Ogre::AxisAlignedBox::getHalfSize(), Ogre::Plane::getSide(), Ogre::AxisAlignedBox::isInfinite(), and Ogre::AxisAlignedBox::isNull().
Definition at line 54 of file OgrePlaneBoundedVolume.h.
Referenced by Ogre::Ray::intersects().
Publicly accessible plane list, you can modify this direct.
Definition at line 53 of file OgrePlaneBoundedVolume.h.
Referenced by Ogre::Ray::intersects().
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:38:57 2012