-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.c
29 lines (26 loc) · 1.15 KB
/
circle.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
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* circle.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sadamant <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/13 18:09:11 by sadamant #+# #+# */
/* Updated: 2018/04/13 18:09:16 by sadamant ### ########.fr */
/* */
/* ************************************************************************** */
#include "wolf3d.h"
int tophalf(double value)
{
if (value > 0 && value < M_PI)
return (1);
if (value > (2 * M_PI) && value < (3 * M_PI))
return (1);
return (0);
}
int righthalf(double value)
{
if (value < (M_PI / 2) || value > ((3 * M_PI) / 2))
return (1);
return (0);
}