Hello guys,
I hope you're all doing very well.
So I've developed this app that rotates an object using quaternion.
Quaternion values are extracted from a csv file.
I'm thinking about adding some conditions to make sure that the quaternion values are valid.
For example if the conditions are true, then we can rotate the object. Otherwise, an error message will be printed saying that the object can't be rotated since the values aren't valid. (Let's say in case, someone modified the csv file without knowing it and that affected some quaternion values).
So I'm wondering wether these conditions are sufficient or not:
-All quaternion components ( w, x, y and z) should be between -1 and 1
-the quaternion norm should be less then or equal to 1
But I think the second condition isn't necessary if the components are all between -1 and 1. Right ?
I can't find any other conditions, I searched on the internet and this is what I found.
Is there any other conditions that needs to be added ?
I'm not sure if this is the right forum to ask this question but since you guys develop games, you certainly use quaternions a lot.
Please help me.
Thank you a lot.