Cub3D
 
Loading...
Searching...
No Matches
s_raydata Struct Reference

Structure used to store the raycasting data. It contains all the information needed to cast a ray. More...

#include <data_structure.h>

Collaboration diagram for s_raydata:

Data Fields

t_vec2 ray_dir
 
t_vec2 side_dist
 
t_vec2 delta_dist
 
t_vec2 pos
 
t_vec2 plane
 
t_pos2 map
 
t_pos2 step
 
int hit_wall
 
int hit_side
 
int ceil_color
 
int floor_color
 

Detailed Description

Structure used to store the raycasting data. It contains all the information needed to cast a ray.

Field Documentation

◆ ceil_color

int s_raydata::ceil_color

◆ delta_dist

t_vec2 s_raydata::delta_dist

◆ floor_color

int s_raydata::floor_color

◆ hit_side

int s_raydata::hit_side

◆ hit_wall

int s_raydata::hit_wall

◆ map

t_pos2 s_raydata::map

◆ plane

t_vec2 s_raydata::plane

◆ pos

t_vec2 s_raydata::pos

◆ ray_dir

t_vec2 s_raydata::ray_dir

◆ side_dist

t_vec2 s_raydata::side_dist

◆ step

t_pos2 s_raydata::step

The documentation for this struct was generated from the following file: