[cairo] Rotations with Quaternions

cecashon at aol.com cecashon at aol.com
Mon Jan 8 18:43:50 UTC 2018


Hi Cairo Folks,

Would using quaternions for rotation and shear be workable internally in Cairo? It would make for a simplified function for setting up the rotation and shear of a drawing by requiring pitch, roll and yaw parameters. This is something that is visually easier for a programmer to understand even when drawing in 2d.

This is some test code using quaternions with Cairo and GTK. 

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

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20180108/282128a9/attachment.html>


More information about the cairo mailing list