Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

peon::PlaneBoundedVolume Class Reference

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

#include <PlaneBoundedVolume.h>

List of all members.

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.
bool intersects (const Sphere &sphere) const
 Intersection test with Sphere.
std::pair< bool, Realintersects (const Ray &ray)
 Intersection test with a Ray.

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

std::pair<bool, Real> peon::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.

bool peon::PlaneBoundedVolume::intersects const Sphere sphere  )  const [inline]
 

Intersection test with Sphere.

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

bool peon::PlaneBoundedVolume::intersects const AxisAlignedBox box  )  const [inline]
 

Intersection test with AABB.

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


The documentation for this class was generated from the following file:
Generated on Wed Nov 9 09:37:08 2005 for Peon by  doxygen 1.4.3