Rotations with Quaternions

[email protected]
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.