blob: 40121ea9654d59cd45afa806376877d38b6b86ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _HACKVR_MATH_H_
#define _HACKVR_MATH_H_
#include "common.h" //should define c3_t
#define __USE_GNU
#include <math.h>
#undef __USE_GNU
real distance2(c2_t p1,c2_t p2);
c2_t rotate_c2(c2_t p1,c2_t p2,radians dr);
c3_t rotate_c3_xr(c3_t p1,c3_t p2,radians xr);
c3_t rotate_c3_yr(c3_t p1,c3_t p2,radians yr);
c3_t rotate_c3_zr(c3_t p1,c3_t p2,radians zr);
c3_group_rot_t *get_group_rotation(char *id);
radians d2r(degrees d);
degrees r2d(radians r);
radians points_to_angle(c2_t p1,c2_t p2);
#endif
|