-
Notifications
You must be signed in to change notification settings - Fork 1
/
debug.c
28 lines (24 loc) · 1.09 KB
/
debug.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* debug.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: znichola <znichola@student.42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/01 00:38:15 by znichola #+# #+# */
/* Updated: 2022/12/01 11:11:17 by znichola ### ########.fr */
/* */
/* ************************************************************************** */
#include "fractol.h"
void pi(t_ipoint p)
{
printf("(%d, %d)", p.x, p.y);
}
void pf(t_fpoint p)
{
printf("(%.1f, %.1f)", p.x, p.y);
}
void print_complex(char *s, t_complex c)
{
printf("%s {%.3f + %.3fi}\n", s, c.a, c.b);
}