vrheights

view src/bezmath.h @ 16:7f6d68d95c22

updated to new version of goatvr
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 30 Oct 2015 06:34:31 +0200
parents
children
line source
1 #ifndef BEZMATH_H_
2 #define BEZMATH_H_
4 struct vec3 {
5 float x, y, z;
6 };
8 #ifdef __cplusplus
9 extern "C"
10 #endif
12 struct vec3 v3_add(struct vec3 a, struct vec3 b);
13 struct vec3 v3_sub(struct vec3 a, struct vec3 b);
14 struct vec3 v3_cross(struct vec3 a, struct vec3 b);
15 struct vec3 v3_normalize(struct vec3 v);
17 struct vec3 bezier_patch(struct vec3 *cp, float u, float v);
18 struct vec3 bezier_patch_norm(struct vec3 *cp, float u, float v);
20 #ifdef __cplusplus
21 }
22 #endif
24 #endif /* BEZMATH_H_ */