Cyclone Cyclone: cyclone::IntersectionTests Class Reference

cyclone::IntersectionTests Class Reference

A wrapper class that holds fast intersection tests. More...

#include <collide_fine.h>

List of all members.

Static Public Member Functions

static bool sphereAndHalfSpace (const CollisionSphere &sphere, const CollisionPlane &plane)
static bool sphereAndSphere (const CollisionSphere &one, const CollisionSphere &two)
static bool boxAndBox (const CollisionBox &one, const CollisionBox &two)
static bool boxAndHalfSpace (const CollisionBox &box, const CollisionPlane &plane)
 Does an intersection test on an arbitrarily aligned box and a half-space.


Detailed Description

A wrapper class that holds fast intersection tests.

These can be used to drive the coarse collision detection system or as an early out in the full collision tests below.


Member Function Documentation

static bool cyclone::IntersectionTests::boxAndBox const CollisionBox one,
const CollisionBox two
[static]
 

static bool cyclone::IntersectionTests::boxAndHalfSpace const CollisionBox box,
const CollisionPlane plane
[static]
 

Does an intersection test on an arbitrarily aligned box and a half-space.

The box is given as a transform matrix, including position, and a vector of half-sizes for the extend of the box along each local axis.

The half-space is given as a direction (i.e. unit) vector and the offset of the limiting plane from the origin, along the given direction.

static bool cyclone::IntersectionTests::sphereAndHalfSpace const CollisionSphere sphere,
const CollisionPlane plane
[static]
 

static bool cyclone::IntersectionTests::sphereAndSphere const CollisionSphere one,
const CollisionSphere two
[static]
 


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