cglm icon indicating copy to clipboard operation
cglm copied to clipboard

glm_vec3() args

Open harryprogramer opened this issue 1 year ago • 1 comments

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?

harryprogramer avatar May 26 '24 11:05 harryprogramer

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.

recp avatar May 26 '24 18:05 recp