Skip to content
New issue

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

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

Already on GitHub? # to your account

make vector/matrix component length() static #565

Closed
MaliusArth opened this issue Oct 30, 2016 · 2 comments
Closed

make vector/matrix component length() static #565

MaliusArth opened this issue Oct 30, 2016 · 2 comments
Assignees
Milestone

Comments

@MaliusArth
Copy link

MaliusArth commented Oct 30, 2016

length() returns a constant which is specific to a type so no need to rely on an instance,
the need to create a temporary instance e.g in template functions is annoying and unnecessary
see: glm/test/core/core_type_length.cpp

@Groovounet
Copy link
Member

This issue is fixed in master branch and GLM 0.9.8.2 release.

@elect86
Copy link

elect86 commented Mar 5, 2017

I'd need also a parameter to return, for matrices, the number of elements

For a mat4 this means 16, where length actually return 4 (because of 4 columns)

It's not urgent at all, it's just sugar code, but it'd nice to have

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants