-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcam.c
23 lines (20 loc) · 1.03 KB
/
cam.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cam.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bmikaeli <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/02/16 18:55:26 by tdemay #+# #+# */
/* Updated: 2014/03/13 18:50:38 by bmikaeli ### ########.fr */
/* */
/* ************************************************************************** */
#include "cam.h"
t_cam *cam_init(void)
{
t_cam *new;
new = NEW(t_cam);
new->pos = new_vect(0, 0, 0);
new->FOV = tan((45 * M_PI) / 180);
return (new);
}