#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) |
|
|
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. |
|
|
Checks for intersection between 2 spheres. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000