mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
docs: add missing non-square matrix funcs
Functions include: * glm_mat#x#_copy * glm_mat#x#_zero * glm_mat#x#_mul * glm_mat#x#_mulv * glm_mat#x#_transpose * glm_mat#x#_scale Commit also includes some minor changes to * mat2 * mat3 * mat4 Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -72,6 +72,7 @@ Functions documentation
|
||||
.. c:function:: void glm_mat3_mul(mat3 m1, mat3 m2, mat3 dest)
|
||||
|
||||
multiply m1 and m2 to dest
|
||||
|
||||
m1, m2 and dest matrices can be same matrix, it is possible to write this:
|
||||
|
||||
.. code-block:: c
|
||||
@@ -103,10 +104,10 @@ Functions documentation
|
||||
|
||||
.. c:function:: void glm_mat3_mulv(mat3 m, vec3 v, vec3 dest)
|
||||
|
||||
multiply mat4 with vec4 (column vector) and store in dest vector
|
||||
multiply mat3 with vec3 (column vector) and store in dest vector
|
||||
|
||||
Parameters:
|
||||
| *[in]* **mat** mat3 (left)
|
||||
| *[in]* **m** mat3 (left)
|
||||
| *[in]* **v** vec3 (right, column vector)
|
||||
| *[out]* **dest** destination (result, column vector)
|
||||
|
||||
@@ -123,8 +124,8 @@ Functions documentation
|
||||
multiply matrix with scalar
|
||||
|
||||
Parameters:
|
||||
| *[in, out]* **mat** matrix
|
||||
| *[in]* **dest** scalar
|
||||
| *[in, out]* **m** matrix
|
||||
| *[in]* **s** scalar
|
||||
|
||||
.. c:function:: float glm_mat3_det(mat3 mat)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user