From: Lukas Jiriste Date: Fri, 26 Apr 2024 09:17:55 +0000 (+0200) Subject: Refactor include files to comply with the Norm X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=f97d9cbdf7da602cf680d9ae84539a0a56fbe059;p=42%2Ffract-ol.git Refactor include files to comply with the Norm --- diff --git a/inc/color.h b/inc/color.h index cf2fa4d..7bb928e 100644 --- a/inc/color.h +++ b/inc/color.h @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 18:51:23 by ljiriste #+# #+# */ -/* Updated: 2024/01/17 12:20:02 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:12:57 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,7 +22,7 @@ struct s_color unsigned char g; unsigned char b; }; -typedef struct s_color t_color; +typedef struct s_color t_color; t_color lin_interp_color(t_color zero, t_color one, double norm_par); t_color basic_palette(double normalized_par); diff --git a/inc/complex.h b/inc/complex.h index c3bfa00..0f5d33e 100644 --- a/inc/complex.h +++ b/inc/complex.h @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 18:51:27 by ljiriste #+# #+# */ -/* Updated: 2024/01/19 10:56:11 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:16:20 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,7 +18,7 @@ struct s_complex double r; double i; }; -typedef struct s_complex t_complex; +typedef struct s_complex t_complex; t_complex to_complex(double x, double y); t_complex complex_add(t_complex x, t_complex y); diff --git a/inc/fractals.h b/inc/fractals.h index a3277de..e6f749b 100644 --- a/inc/fractals.h +++ b/inc/fractals.h @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/19 10:56:55 by ljiriste #+# #+# */ -/* Updated: 2024/04/25 15:10:14 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:16:59 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,8 +15,10 @@ # include "fractol.h" -//double general_julia(void *zeroth, double resolution, -// void (*tested_f)(void *), int (*is_over_thresh)(void *)); +/* +double general_julia(void *zeroth, double resolution, + void (*tested_f)(void *), int (*is_over_thresh)(void *)); +*/ double mandelbrot(t_set *settings, double x, double y); double tricorn(t_set *settings, double x, double y); diff --git a/inc/fractol.h b/inc/fractol.h index 1e7583f..0d4bfc2 100644 --- a/inc/fractol.h +++ b/inc/fractol.h @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 18:51:29 by ljiriste #+# #+# */ -/* Updated: 2024/04/26 11:01:18 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:16:05 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -32,9 +32,9 @@ struct s_img int undersample; int undersample_max; }; -typedef struct s_img t_img; +typedef struct s_img t_img; -typedef double (*t_fractal)(); +typedef double (*t_fractal)(); struct s_view { @@ -45,13 +45,13 @@ struct s_view t_vect2 window_coord; t_vect2 pixel_size; }; -typedef struct s_view t_view; +typedef struct s_view t_view; union u_input { t_complex cpx; }; -typedef union u_input t_input; +typedef union u_input t_input; struct s_set { @@ -59,7 +59,7 @@ struct s_set int color_stability; t_input input; }; -typedef struct s_set t_set; +typedef struct s_set t_set; struct s_session { diff --git a/inc/vect2.h b/inc/vect2.h index 500035c..b74dfce 100644 --- a/inc/vect2.h +++ b/inc/vect2.h @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 18:51:34 by ljiriste #+# #+# */ -/* Updated: 2023/11/11 18:51:38 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:12:40 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,6 +18,6 @@ struct s_vect2 double x; double y; }; -typedef struct s_vect2 t_vect2; +typedef struct s_vect2 t_vect2; #endif