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
I was debugging an issue in my code and I had to visually inspect the value of a quaternion so I turned to glm::to_string to provide me with a textual representation. Without even thinking about it, I was expecting the output to be in {w, x, y, z} order because that's how I've seen it presented in online resources that I've been learning from. Unfortunately, that was not the case as the order in which the output is written is {x, y, z, w}.
This hasn't affected me much but I did lose some time because of it and I don't think this is intended behaviour.
I was debugging an issue in my code and I had to visually inspect the value of a quaternion so I turned to glm::to_string to provide me with a textual representation. Without even thinking about it, I was expecting the output to be in {w, x, y, z} order because that's how I've seen it presented in online resources that I've been learning from. Unfortunately, that was not the case as the order in which the output is written is {x, y, z, w}.
This hasn't affected me much but I did lose some time because of it and I don't think this is intended behaviour.
Sample code to reproduce the issue:
Sample output:
I've looked around in the code and I see that this is a trivial fix. I can submit a pull request if this should be addressed.
The text was updated successfully, but these errors were encountered: