dev: added ray structure

This commit is contained in:
Theo Champion 2025-07-30 12:07:05 +02:00
parent a9b5fbd370
commit 7c42208d20

37
src/raycast/ray.h Normal file
View file

@ -0,0 +1,37 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ray.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tchampio <tchampio@student.42lehavre. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/29 11:32:20 by tchampio #+# #+# */
/* Updated: 2025/07/29 11:35:17 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef RAY_H
# define RAY_H
typedef struct s_ray
{
double plane;
double dir_x;
double dir_y;
int map_x;
int map_y;
int step_x;
int step_y;
double side_dist_x;
double side_dist_y;
double delta_dist_x;
double delta_dist_y;
double wall_dist;
int side;
int wall_height;
int draw_start;
int draw_end;
double wall_x;
} t_ray;
#endif // RAY_H