Claudette
 All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros
Classes | Functions
Claudette Namespace Reference

Classes

class  BaseCollisionTest
 Base class for all collision tests. More...
 
class  CollisionModel3D
 Collision Model, will represent the mesh to be tested for collisions. More...
 
class  Inconsistency
 Inconsistency exception. More...
 
class  ModelCollisionTest
 Collision test between two meshes. More...
 
class  RayCollisionTest
 Collision test with a ray. More...
 
class  SphereCollisionTest
 Collision test with a sphere. More...
 

Functions

CLAUDETTE_LIB_EXPORT bool SphereRayCollision (const float sphereCenter[3], float sphereRadius, const float rayOrigin[3], const float rayDirection[3], float point[3])
 Checks for intersection between a ray and a sphere. More...
 
CLAUDETTE_LIB_EXPORT bool SphereSphereCollision (const float c1[3], float r1, const float c2[3], float r2, float point[3])
 Checks for intersection between 2 spheres. More...
 

Function Documentation

CLAUDETTE_LIB_EXPORT bool Claudette::SphereRayCollision ( const float  sphereCenter[3],
float  sphereRadius,
const float  rayOrigin[3],
const float  rayDirection[3],
float  point[3] 
)

Checks for intersection between a ray and a sphere.

Parameters
pointwill contain point of intersection, if one is found.
CLAUDETTE_LIB_EXPORT bool Claudette::SphereSphereCollision ( const float  c1[3],
float  r1,
const float  c2[3],
float  r2,
float  point[3] 
)

Checks for intersection between 2 spheres.