Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

coldet.cpp File Reference

#include "sysdep.h"
#include "coldetimpl.h"
#include "mytritri.h"
#include <assert.h>

Go to the source code of this file.

Compounds

class  Check

Functions

bool SphereRayCollision (float center[3], float radius, float origin[3], float direction[3], float point[3])
bool SphereSphereCollision (float c1[3], float r1, float c2[3], float r2)


Function Documentation

bool SphereRayCollision ( float center[3],
float radius,
float origin[3],
float direction[3],
float point[3] )
 

Checks for intersection between a ray and a sphere. center, radius define the sphere origin, direction define the ray point will contain point of intersection, if one is found.

bool SphereSphereCollision ( float c1[3],
float r1,
float c2[3],
float r2 )
 

Checks for intersection between 2 spheres.


Generated at Sat Nov 18 00:15:14 2000 for coldet by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000