cglm
cglm copied to clipboard
glm_vec3() args
why function glm_vec3 defined as void glm_vec3(vec4 v4, vec3 dest) where implemenation is
dest[0] = v4[0]; dest[1] = v4[1]; dest[2] = v4[2];
takes argument vec4 instead of vec3 or just float*?
bug or something?
Hi @harryprogramer,
Thanks for reporting this. glm_vec3() converting vec4 to vec3 this is why it is defined as what it is.
In the future, we may use better name if it is not fit for the purpose.