vrheights

view src/bezmath.h @ 5:053a52f0cb64

console
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 26 Sep 2014 18:40:15 +0300
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_ */