miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
s_hit Struct Reference

The structure t_hit stores a linked list of ray-shape intersections' values. More...

#include <shapes.h>

Collaboration diagram for s_hit:

Data Fields

double t
 
t_shape * object
 
t_hit * next
 

Detailed Description

The structure t_hit stores a linked list of ray-shape intersections' values.

Parameters
tStores the distance between the origin of the ray and the point of intersection.
objectStores information about the shape that is being intersected.
nextStores the next intersection value of one ray casting, if any.