mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
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 <vince@underview.tech>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user