The structure t_hit stores a linked list of ray-shape intersections' values. More...
#include <shapes.h>

Data Fields | |
| double | t |
| t_shape * | object |
| t_hit * | next |
The structure t_hit stores a linked list of ray-shape intersections' values.
| t | Stores the distance between the origin of the ray and the point of intersection. |
| object | Stores information about the shape that is being intersected. |
| next | Stores the next intersection value of one ray casting, if any. |