mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
mat2: add new function glm_mat2_make
Function takes in a 4 element float array and converts it into a mat2 matrix. Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -32,6 +32,7 @@ Functions:
|
||||
#. :c:func:`glm_mat2_swap_col`
|
||||
#. :c:func:`glm_mat2_swap_row`
|
||||
#. :c:func:`glm_mat2_rmc`
|
||||
#. :c:func:`glm_mat2_make`
|
||||
|
||||
Functions documentation
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -177,3 +178,13 @@ Functions documentation
|
||||
|
||||
Returns:
|
||||
scalar value e.g. Matrix1x1
|
||||
|
||||
.. c:function:: void glm_mat2_make(float * __restrict src, mat2 dest)
|
||||
|
||||
Create mat2 matrix from pointer
|
||||
|
||||
| NOTE: **@src** must contain 4 elements.
|
||||
|
||||
Parameters:
|
||||
| *[in]* **src** pointer to an array of floats
|
||||
| *[out]* **dest** destination matrix2x2
|
||||
|
Reference in New Issue
Block a user