Rotation matrices used for turtle geometry are different than regular rotation matrices?

38 Views Asked by At

I'm learning L-systems and have been reading the book Algorithmic Beauty of Plants by Aristid Lindenmayer.

In the book they discuss the use of rotation matrices for the turtle geometry used to traverse and draw the L-systems in 3-dimensions.

Their definition of rotation matrices:

enter image description here

The wikipedia page for Rotation matrix defines it as:

enter image description here

Notice on the x,h matrices they are identical, but for u,z and y,l there are sin(a) that have negatives swapped.

Is this an intentional alteration for the purposes of turtle geometry or does the negative sign not have a significant alteration to how the rotation is applied?

1

There are 1 best solutions below

0
On BEST ANSWER

Remember that $$\sin(-\alpha)=-\sin\alpha.$$