mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
docs: documented ray struct
This commit is contained in:
parent
f21b8dc448
commit
fb57ef253a
1 changed files with 17 additions and 1 deletions
|
|
@ -6,13 +6,29 @@
|
||||||
/* By: tchampio <tchampio@student.42lehavre. +#+ +:+ +#+ */
|
/* By: tchampio <tchampio@student.42lehavre. +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/07/29 11:32:20 by tchampio #+# #+# */
|
/* Created: 2025/07/29 11:32:20 by tchampio #+# #+# */
|
||||||
/* Updated: 2025/07/30 16:39:24 by tchampio ### ########.fr */
|
/* Updated: 2025/07/30 16:46:05 by tchampio ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#ifndef RAY_H
|
#ifndef RAY_H
|
||||||
# define RAY_H
|
# define RAY_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* plane - plan de camera (vectoriel)
|
||||||
|
* dir_x - Direction (pour X)
|
||||||
|
* dir_y - Direction (pour Y)
|
||||||
|
* map_x - Position dans la map du rayon
|
||||||
|
* map_y - Position dans la map du rayon
|
||||||
|
* step_x - "pas" d'un rayon
|
||||||
|
* step_y
|
||||||
|
* side_dist_x - Distance horizontale avant la prochaine section de quadrillage
|
||||||
|
* side_dist_y - idem mais pour le vertical
|
||||||
|
* wall_dist - distance du mur touché
|
||||||
|
* side - de quel cote part le rayon
|
||||||
|
* wall_height - Hauteur du mur a dessiner
|
||||||
|
* draw_start - x boucle de la matrice de pixel pour dessiner a la bonne hauteur
|
||||||
|
* draw_end - fin du dessin du mur
|
||||||
|
*/
|
||||||
typedef struct s_ray
|
typedef struct s_ray
|
||||||
{
|
{
|
||||||
double plane;
|
double plane;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue