-
Notifications
You must be signed in to change notification settings - Fork 0
/
vec6f.c
33 lines (28 loc) · 1.24 KB
/
vec6f.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
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* vec6f.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyildiri <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/21 21:21:16 by cyildiri #+# #+# */
/* Updated: 2016/11/21 21:33:35 by cyildiri ### ########.fr */
/* */
/* ************************************************************************** */
#include "libgraphics.h"
t_vec6f *new_vec6f(t_vec3fc pos, t_vec3fc rot)
{
t_vec6f *pos_rot;
if (!(pos_rot = (t_vec6f *)ft_memalloc(sizeof(t_vec6f))))
return (NULL);
pos_rot->position = pos;
pos_rot->rotation = rot;
return (pos_rot);
}
t_vec6f vec6f(t_vec3fc pos, t_vec3fc rot)
{
t_vec6f pos_rot;
pos_rot.position = pos;
pos_rot.rotation = rot;
return (pos_rot);
}