Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glm_vec3() args #419

Open
harryprogramer opened this issue May 26, 2024 · 1 comment
Open

glm_vec3() args #419

harryprogramer opened this issue May 26, 2024 · 1 comment

Comments

@harryprogramer
Copy link

harryprogramer commented May 26, 2024

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?

@recp
Copy link
Owner

recp commented May 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants