OGRE-Next
3.0.0
Object-Oriented Graphics Rendering Engine
|
Represents a convex volume bounded by planes. More...
#include <OgrePlaneBoundedVolume.h>
Public Types | |
typedef StdVector< 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.
|
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().
Intersection test with a Ray.
References Ogre::Math::intersects(), and Ogre::Plane::POSITIVE_SIDE.
|
inline |
Intersection test with Sphere.
References Ogre::Sphere::getCenter(), Ogre::Plane::getDistance(), Ogre::Sphere::getRadius(), and Ogre::Plane::NEGATIVE_SIDE.
Plane::Side Ogre::PlaneBoundedVolume::outside |
Referenced by Ogre::Ray::intersects().
PlaneList Ogre::PlaneBoundedVolume::planes |
Publicly accessible plane list, you can modify this direct.
Referenced by Ogre::Ray::intersects().