OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
Represents a convex volume bounded by planes. More...
#include <OgrePlaneBoundedVolume.h>
Public Types | |
typedef std::vector< Plane > | PlaneList |
Public Member Functions | |
PlaneBoundedVolume () | |
PlaneBoundedVolume (Plane::Side theOutside) | |
Constructor, determines which side is deemed to be 'outside'. More... | |
bool | intersects (const AxisAlignedBox &box) const |
Intersection test with AABB. More... | |
std::pair< bool, Real > | intersects (const Ray &ray) |
Intersection test with a Ray. More... | |
bool | intersects (const Sphere &sphere) const |
Intersection test with Sphere. More... | |
Public Attributes | |
Plane::Side | outside |
PlaneList | planes |
Publicly accessible plane list, you can modify this direct. More... | |
Represents a convex volume bounded by planes.
typedef std::vector<Plane> Ogre::PlaneBoundedVolume::PlaneList |
|
inline |
|
inline |
Constructor, determines which side is deemed to be 'outside'.
|
inline |
Intersection test with AABB.
References Ogre::AxisAlignedBox::getCenter(), Ogre::AxisAlignedBox::getHalfSize(), Ogre::Plane::getSide(), Ogre::AxisAlignedBox::isInfinite(), and Ogre::AxisAlignedBox::isNull().
|
inline |
Intersection test with Sphere.
References Ogre::Sphere::getCenter(), Ogre::Plane::getDistance(), Ogre::Sphere::getRadius(), and Ogre::Plane::NEGATIVE_SIDE.
Intersection test with a Ray.
References Ogre::Math::intersects(), and Ogre::Plane::POSITIVE_SIDE.
PlaneList Ogre::PlaneBoundedVolume::planes |
Publicly accessible plane list, you can modify this direct.
Referenced by Ogre::Ray::intersects().
Plane::Side Ogre::PlaneBoundedVolume::outside |
Referenced by Ogre::Ray::intersects().