mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
dev: added ray structure
This commit is contained in:
parent
a9b5fbd370
commit
7c42208d20
1 changed files with 37 additions and 0 deletions
37
src/raycast/ray.h
Normal file
37
src/raycast/ray.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue