-
Notifications
You must be signed in to change notification settings - Fork 2
/
limits.c
25 lines (22 loc) · 1.11 KB
/
limits.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* limits.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qloubier <qloubier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/18 18:11:16 by qloubier #+# #+# */
/* Updated: 2016/08/18 18:32:34 by qloubier ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "rt.h"
t_limit *rt_create_limit(t_limtyp axe, t_v3d point, t_limit *next)
{
t_limit *ret;
IFRET__(!(ret = malloc(sizeof(t_limit))), NULL);
ret->axe = axe;
ret->limit = point;
ret->next = next;
return (ret);
}