You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also some functions like degrees() and radians() should use it too.
It would allow using glm constants and many functions like degrees to radians conversion in users own constexpr functions.
It would make sense to add constexpr to many more places too, like some vector and matrix constructors and math operations. It would make possible to move some matrix/vector math to compile time.
The text was updated successfully, but these errors were encountered:
To really take advantage of this, C++14 has to be fully implemented in all the major compilers; C++11 heavily restricts what constexpr functions can do, but C++14 doesn't.
It would be nice if glm would use the
constexpr
keyword more.For example constats:
Would instead be:
Also some functions like
degrees()
andradians()
should use it too.It would allow using glm constants and many functions like degrees to radians conversion in users own constexpr functions.
It would make sense to add
constexpr
to many more places too, like some vector and matrix constructors and math operations. It would make possible to move some matrix/vector math to compile time.The text was updated successfully, but these errors were encountered: