Merge pull request #301 from EasyIP2023/feature/glm_mat2_make

mat2: add new function glm_mat2_make
This commit is contained in:
Recep Aslantas
2023-05-15 11:18:27 +03:00
committed by GitHub
7 changed files with 70 additions and 0 deletions

View File

@@ -258,4 +258,17 @@ glms_mat2_(rmc)(vec2s r, mat2s m, vec2s c) {
return glm_mat2_rmc(r.raw, m.raw, c.raw);
}
/*!
* @brief Create mat2 matrix from pointer
*
* @param[in] src pointer to an array of floats
* @param[out] dest matrix
*/
CGLM_INLINE
mat2s
glms_mat2_(make)(float * __restrict src, mat2s dest) {
glm_mat2_make(src, dest.raw);
return dest;
}
#endif /* cglms_mat2_h */