t_ray transform(t_ray ray, t_matrix matrix)
The function transform() multiplies a given ray by a given matrix, which results in an unnormalized r...
Definition: rays.c:27
struct s_ray t_ray
The struct of type t_ray represents a ray, which is the foundation for ray casting....
t_point position(t_ray ray, float distance)
The function position() finds the position of a given ray and a given time or distance....
Definition: rays.c:22
t_ray new_ray(t_point origin, t_vector direction)
The function new_ray() creates and queries a ray with the given origin and direction passed as parame...
Definition: rays.c:15
The struct t_matrix stores a matrix up to 4x4 and size of 16. A matrix is a grid of numbers that can ...
Definition: matrices.h:34
The struct of type t_ray represents a ray, which is the foundation for ray casting....
Definition: rays.h:28
Tuple means a list of ordered things. The struct t_tuple stores coordinates for a left-handed coordin...
Definition: tuples.h:33