[cairo] Rotations with Quaternions

cecashon at aol.com cecashon at aol.com
Sat Jan 20 19:13:48 UTC 2018


 
I added a frame clock to rotation1.c for comparison with the VeloGyro widget. Made a few additional changes so they look the same. 

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/rotation1.c

It looks like everything works fine with cairo's transforms. The quaternion rotations look stable across the reals. The quaternion rotations aren't additive with this setup but that isn't a problem with cairo_save() and cairo_restore(). You can still animate rotations without a problem.

Eric


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20180120/5377af44/attachment.html>


More information about the cairo mailing list