libft pas symlink

This commit is contained in:
hugogogo
2021-07-23 17:19:42 +02:00
parent 3b8a88de23
commit 99c95c1cf1
102 changed files with 26 additions and 8087 deletions

View File

@@ -29,7 +29,22 @@ int keypress(int keycode, t_fdf *fdf)
return (0);
}
// return an int[3] : int[0] = x, int[1] = y, int[2] = z
/*
** int[0] = x, int[1] = y, int[2] = z
** quick explanation :
** zoom :
** x = i * (fdf->offset + fdf->zoom);
** center before 3d rotation :
** x -= (fdf->map_size_x + fdf->zoom * fdf->map_width) / 2;
** z changes according to zoom :
** z += (z * fdf->zoom) / fdf->offset;
** deplacement :
** point[0] += fdf->margin + fdf->mov_x;
** center zoom after :
** point[0] -= ((fdf->map_size_x / 2) / fdf->offset) * fdf->zoom;
** center after 3d rotation :
** point[0] += (fdf->map_size_x + fdf->zoom * fdf->map_width) / 2;
*/
int *new_coordinates(t_fdf *fdf, int i, int j)
{
int x;