Add sphere intersection function
This commit is contained in:
parent
0c050734c7
commit
974ebd6ccd
2 changed files with 110 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue