libft pas symlink
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user