Home | History | Annotate | Download | only in demos

Lines Matching defs:vec3

39 typedef float vec3[3];
40 static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) {
45 static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) {
50 static inline void vec3_scale(vec3 r, vec3 const v, float const s) {
55 static inline float vec3_mul_inner(vec3 const a, vec3 const b) {
62 static inline void vec3_mul_cross(vec3 r, vec3 const a, vec3 const b) {
67 static inline float vec3_len(vec3 const v) {
70 static inline void vec3_norm(vec3 r, vec3 const v) {
74 static inline void vec3_reflect(vec3 r, vec3 const v, vec3 const n) {
209 static inline void mat4x4_from_vec3_mul_outer(mat4x4 M, vec3 a, vec3 b) {
219 vec3 u = {x, y, z};
318 vec3 h;
396 static inline void mat4x4_look_at(mat4x4 m, vec3 eye, vec3 center, vec3 up) {
403 vec3 f;
407 vec3 s;
411 vec3 t;
453 vec3 w;
480 static inline void quat_mul_vec3(vec3 r, quat q, vec3 v) {