[cairo] Rotations with Quaternions
cecashon at aol.com
cecashon at aol.com
Mon Jan 22 23:41:25 UTC 2018
Hi Bill,
I took a look at your drawings of the checker pattern. They can be drawn with 3d rotations using quaternions. The rotations use a cairo transform so the drawing doesn't change how fonts are drawn. Nothing is changed internally in Cairo.
If you get a chance could you take a look at the following
https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/rotation2.c
I have had some trouble getting the rotations to follow the "aircraft" spec but it is more a matter of how the axis are labelled for that. The drawing has a few squares that are rotated and their perspective changes along with the rotation. Similar to your checker board drawings.
Appreciate any comments.
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20180122/7a6c80c9/attachment.html>
More information about the cairo
mailing list