vrheights

annotate src/bezmath.h @ 7:0eca023ed909

- fixed the hmd-tracking / mouselook interaction - added game variable system
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Oct 2014 01:06:55 +0300
parents
children
rev   line source
nuclear@3 1 #ifndef BEZMATH_H_
nuclear@3 2 #define BEZMATH_H_
nuclear@3 3
nuclear@3 4 struct vec3 {
nuclear@3 5 float x, y, z;
nuclear@3 6 };
nuclear@3 7
nuclear@3 8 #ifdef __cplusplus
nuclear@3 9 extern "C"
nuclear@3 10 #endif
nuclear@3 11
nuclear@3 12 struct vec3 v3_add(struct vec3 a, struct vec3 b);
nuclear@3 13 struct vec3 v3_sub(struct vec3 a, struct vec3 b);
nuclear@3 14 struct vec3 v3_cross(struct vec3 a, struct vec3 b);
nuclear@3 15 struct vec3 v3_normalize(struct vec3 v);
nuclear@3 16
nuclear@3 17 struct vec3 bezier_patch(struct vec3 *cp, float u, float v);
nuclear@3 18 struct vec3 bezier_patch_norm(struct vec3 *cp, float u, float v);
nuclear@3 19
nuclear@3 20 #ifdef __cplusplus
nuclear@3 21 }
nuclear@3 22 #endif
nuclear@3 23
nuclear@3 24 #endif /* BEZMATH_H_ */