matrix: trace of matrix

This commit is contained in:
Recep Aslantas
2018-12-06 18:17:02 +03:00
parent 2ef9c23a6c
commit 21834b4ffb
8 changed files with 105 additions and 0 deletions
+4
View File
@@ -44,6 +44,10 @@ CGLM_EXPORT
void
glmc_mat3_mulv(mat3 m, vec3 v, vec3 dest);
CGLM_EXPORT
float
glmc_mat3_trace(mat3 m);
CGLM_EXPORT
void
glmc_mat3_quat(mat3 m, versor dest);
+8
View File
@@ -61,6 +61,14 @@ CGLM_EXPORT
void
glmc_mat4_mulv3(mat4 m, vec3 v, float last, vec3 dest);
CGLM_EXPORT
float
glmc_mat4_trace(mat4 m);
CGLM_EXPORT
float
glmc_mat4_trace3(mat4 m);
CGLM_EXPORT
void
glmc_mat4_quat(mat4 m, versor dest);