I hope you know GL Mathematics (GLM) because I've got a problem, I can not break:
I have a set of Euler Angles and I need to perform smooth interpolation between them. The best way is converting them to Quaternions and applying SLERP alrogirthm.
The issue I have is how to initialize glm::quaternion with Euler Angles, please?
I read GLM Documentation over and over, but I can not find appropriate Quaternion constructor signature
, that would take three Euler Angles. The closest one I found is
angleAxis() function, taking angle value and an axis for that angle. Note, please, what I am looking for si a way, how to parse RotX, RotY, RotZ
.
For your information, this is the above metnioned angleAxis() function signature:
detail::tquat< valType > angleAxis (valType const &angle, valType const &x, valType const &y, valType const &z)