How does turtle geometry keep track of which way is up/down?

44 Views Asked by At

I'm having an issue understanding how turtle geometry is supposed to work.

Turtle geometry is a simple way of drawing lines to create shapes in 3d space. Wherever the turtle walks to you are able to draw a line based on the commands that are given to it enter image description here

Let's say for the orientation vector O the Heading, Left, and Up unit vectors for the turtle are:

enter image description here

So the turtle is facing entirely in the x-direction.

If you wanted to rotate the turtle by some angle about the x-axis, such that the belly of the turtle would be rotating, you would take the RH matrix:

enter image description here

and multiply it by the orientation vector O like so:

enter image description here

So, clearly the turtle's orientation stays the same since it is facing directly on the x-axis. No rotation occurs. How is the "belly" of the turtle supposed to be rotated if you wanted to turn him upside down?