t_ray ray_for_pixel(t_camera *camera, float px, float py)
Computes the ray that passes through the specified pixel on the camera plane.
Definition: camera.c:32
t_camera new_camera(float hsize, float vsize, float field_of_view)
Creates a new camera with the given attributes.
Definition: camera.c:19
t_matrix view_transform(t_point from, t_point to, t_vector up)
Computes the view transformation matrix given the position of the camera and the point to look at.
Definition: view_transform.c:17
struct s_camera t_camera
The structure of type t_camera contains the necessary information for camera configuration,...
The structure of type t_camera contains the necessary information for camera configuration,...
Definition: camera.h:45
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