mat2x4ΒΆ
Header: cglm/mat2x4.h
Functions documentationΒΆ
-
void
glm_mat2x4_copy
(mat2x4 mat, mat2x4 dest)ΒΆ copy mat2x4 to another one (dest).
- Parameters:
- [in] mat source[out] dest destination
-
void
glm_mat2x4_zero
(mat2x4 mat)ΒΆ make given matrix zero
- Parameters:
- [in,out] mat matrix
-
void
glm_mat2x4_make
(float * __restrict src, mat2x4 dest)ΒΆ Create mat2x4 matrix from pointer
NOTE: @src must contain at least 8 elements.- Parameters:
- [in] src pointer to an array of floats[out] dest destination matrix2x4
-
void
glm_mat2x4_mul
(mat2x4 m1, mat4x2 m2, mat2 dest)ΒΆ multiply m1 and m2 to dest
m1, m2 and dest matrices can be same matrix, it is possible to write this:
glm_mat2x4_mul(m, m, m);
- Parameters:
- [in] m1 left matrix[in] m2 right matrix[out] dest destination matrix
-
void
glm_mat2x4_mulv
(mat2x4 m, vec4 v, vec2 dest)ΒΆ multiply mat2x4 with vec4 (column vector) and store in dest vector
- Parameters:
- [in] m mat2x4 (left)[in] v vec4 (right, column vector)[out] dest destination (result, column vector)
-
void
glm_mat2x4_transpose
(mat2x4 m, mat4x2 dest)ΒΆ transpose matrix and store in dest
- Parameters:
- [in] m matrix[out] dest destination
-
void
glm_mat2x4_scale
(mat2x4 m, float s)ΒΆ multiply matrix with scalar
- Parameters:
- [in, out] m matrix[in] s scalar