vec2: add new function glm_vec2_make

Just a copy of glm_vec2, but with the
word _make suffixed at the end.

Function takes in a float array array must be
at least of size 2 and converts it into
a 2D vector.

Signed-off-by: Vincent Davis Jr <[email protected]>
This commit is contained in:
Vincent Davis Jr committed 2023-07-02 12:41:23 -05:00
1 parent 49dd24eaf2
commit b3de85a14e
7 files changed
+72

No files matched your search

+6
View File
@@ -235,3 +235,9 @@ void
glmc_vec2_complex_conjugate(vec2 a, vec2 dest) {
glm_vec2_complex_conjugate(a, dest);
}
CGLM_EXPORT
void
glmc_vec2_make(float * __restrict src, vec2 dest) {
glm_vec2_make(src, dest);
}