My Project
Public Types | Public Member Functions | Public Attributes | List of all members
ParaEngine::PlaneBoundedVolume Class Reference

Represents a convex volume bounded by planes. More...

#include <ParaPlaneBoundedVolume.h>

Public Types

typedef std::vector< PlanePlaneList
 

Public Member Functions

 PlaneBoundedVolume (Plane::Side theOutside)
 Constructor, determines which side is deemed to be 'outside'.
 
bool intersects (const AxisAlignedBox &box) const
 Intersection test with AABB. More...
 
bool intersects (const Sphere &sphere) const
 Intersection test with Sphere. More...
 
std::pair< bool, float > intersects (const Ray &ray)
 Intersection test with a Ray. More...
 

Public Attributes

PlaneList planes
 Publicly accessible plane list, you can modify this direct.
 
Plane::Side outside
 

Detailed Description

Represents a convex volume bounded by planes.

Member Function Documentation

§ intersects() [1/3]

bool ParaEngine::PlaneBoundedVolume::intersects ( const AxisAlignedBox box) const
inline

Intersection test with AABB.

Remarks
May return false positives but will never miss an intersection.

§ intersects() [2/3]

bool ParaEngine::PlaneBoundedVolume::intersects ( const Sphere sphere) const
inline

Intersection test with Sphere.

Remarks
May return false positives but will never miss an intersection.

§ intersects() [3/3]

std::pair<bool, float> ParaEngine::PlaneBoundedVolume::intersects ( const Ray ray)
inline

Intersection test with a Ray.

Returns
std::pair of hit (bool) and distance
Remarks
May return false positives but will never miss an intersection.

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