-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrotate.c
43 lines (37 loc) · 1.21 KB
/
rotate.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
34
35
36
37
38
39
40
41
42
43
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rotate.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: juschaef <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/08 11:40:36 by juschaef #+# #+# */
/* Updated: 2014/12/10 11:38:50 by juschaef ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void rotate_left(t_win *win)
{
win->angle += 0.05;
erase(win);
}
void rotate_right(t_win *win)
{
win->angle -= 0.05;
erase(win);
}
void pivote_z(t_win *win)
{
win->rot = BET_Z;
erase(win);
}
void pivote_y(t_win *win)
{
win->rot = BET_Y;
erase(win);
}
void pivote_x(t_win *win)
{
win->rot = BET_X;
erase(win);
}