-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_map.c
22 lines (19 loc) · 1.09 KB
/
ft_map.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_map.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rghouzra <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/21 14:12:21 by rghouzra #+# #+# */
/* Updated: 2022/11/21 15:55:28 by rghouzra ### ########.fr */
/* */
/* ************************************************************************** */
#include "fractal.h"
t_complex ft_map(t_data *data)
{
t_complex point;
point.a = ((data->w * data->x) / data->width - data->xcenter);
point.b = ((data->h * data->y) / data->height - data->ycenter);
return (point);
}