Saturday, 19 January 2013

Racket code Ramble

Today, while playing around with the image commands in DrRacket, i noticed that the rotate command rotates an image in degrees counter-clockwise. I wonder how that was decided. Maybe the developers flipped a coin...

1 comment:

  1. This is a classical convention in mathematics: a rotation by a certain number of degrees is, by default, counterclockwise. Rotate by negative that number of degrees for clockwise. Weird but true.

    ReplyDelete