36 static inline void matrix4_copy(
struct matrix4 *dst,
const struct matrix4 *
m)
44 static inline void matrix4_identity(
struct matrix4 *dst)
67 const struct vec3 *v);
69 const struct vec4 *v);
71 const struct quat *q);
75 const struct vec3 *v);
90 static inline void matrix4_translate3f(
struct matrix4 *dst,
94 vec3_set(&v, x, y, z);
98 static inline void matrix4_rotate_aa4f(
struct matrix4 *dst,
99 const struct matrix4 *
m,
float x,
float y,
float z,
float rot)
102 axisang_set(&aa, x, y, z, rot);
106 static inline void matrix4_scale3f(
struct matrix4 *dst,
107 const struct matrix4 *m,
float x,
float y,
float z)
110 vec3_set(&v, x, y, z);
EXPORT void matrix4_from_matrix3(struct matrix4 *dst, const struct matrix3 *m)
struct vec4 x y z t
Definition: matrix4.h:33
EXPORT void matrix4_rotate_aa(struct matrix4 *dst, const struct matrix4 *m, const struct axisang *aa)
EXPORT float matrix4_determinant(const struct matrix4 *m)
EXPORT void matrix4_transpose(struct matrix4 *dst, const struct matrix4 *m)
EXPORT void matrix4_scale(struct matrix4 *dst, const struct matrix4 *m, const struct vec3 *v)
EXPORT void matrix4_mul(struct matrix4 *dst, const struct matrix4 *m1, const struct matrix4 *m2)
EXPORT void matrix4_translate4v_i(struct matrix4 *dst, const struct vec4 *v, const struct matrix4 *m)
EXPORT void matrix4_from_axisang(struct matrix4 *dst, const struct axisang *aa)
float z
Definition: axisang.h:30
EXPORT void matrix4_translate3v_i(struct matrix4 *dst, const struct vec3 *v, const struct matrix4 *m)
EXPORT void matrix4_translate3v(struct matrix4 *dst, const struct matrix4 *m, const struct vec3 *v)
float z
Definition: vec3.h:36
float y
Definition: axisang.h:30
__m128 m
Definition: vec4.h:36
#define EXPORT
Definition: c99defs.h:49
__m128 m
Definition: vec3.h:39
float w
Definition: vec4.h:33
float x
Definition: vec3.h:36
EXPORT bool matrix4_inv(struct matrix4 *dst, const struct matrix4 *m)
float y
Definition: vec3.h:36
EXPORT void matrix4_translate4v(struct matrix4 *dst, const struct matrix4 *m, const struct vec4 *v)
EXPORT void matrix4_rotate_aa_i(struct matrix4 *dst, const struct axisang *aa, const struct matrix4 *m)
float z
Definition: vec4.h:33
EXPORT void matrix4_rotate(struct matrix4 *dst, const struct matrix4 *m, const struct quat *q)
EXPORT void matrix4_from_quat(struct matrix4 *dst, const struct quat *q)
float x
Definition: vec4.h:33
EXPORT void matrix4_rotate_i(struct matrix4 *dst, const struct quat *q, const struct matrix4 *m)
float y
Definition: vec4.h:33
float x
Definition: axisang.h:30
EXPORT void matrix4_scale_i(struct matrix4 *dst, const struct vec3 *v, const struct matrix4 *m)