The struct of type t_ray represents a ray, which is the foundation for ray casting. Ray casting is the process of creating a ray, or line, and finding the intersections of that ray with the objects in a scene. More...
#include <rays.h>

Data Fields | |
| t_point | origin |
| t_vector | direction |
The struct of type t_ray represents a ray, which is the foundation for ray casting. Ray casting is the process of creating a ray, or line, and finding the intersections of that ray with the objects in a scene.
| origin | Stores the starting point of a ray. |
| direction | Stores the vector which says where a ray points to. |