I have an iPhone app which should get every rotation avoiding Gimbal Lock, and I understood that the solution could be using quaternions or rotation matrix.
However, I find difficult to understand how can I use quaternions for 2d rotation instead of using 3d rotation.
From algorithmic point of view you can start from understanding quaternions. However, you can see how to convert 3D rotation to 2D rotation. Finally, you can see how to include quaternions in ios graphics using GLKQuaternion Reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With