Add sphere intersection function

This commit is contained in:
Eryn Wells 2013-09-07 18:26:32 -07:00
parent 0c050734c7
commit 974ebd6ccd
2 changed files with 110 additions and 2 deletions

View file

@ -25,6 +25,8 @@ void object_destroy(Object *obj);
Vector3 object_get_location(Object *obj);
void object_set_location(Object *obj, Vector3 location);
int object_does_intersect(Object *obj, Ray ray, float **t);
// Sphere methods
float object_sphere_get_radius(Object *obj);
void object_sphere_set_radius(Object *obj, float r);