Sunday, July 11, 2010

wumpus-shapes

Copperbox revision 1499.

Work on rotation and other transformations.

I've decided to make shapes instances of the affine transformation classes: Rotate, Scale and Translate. Like Primitives, shapes don't exist in an affine frame until they are lifted to Pictures, however having distinct names for each transformation on each shape (rotateRectangle, etc.) would not be pleasant.

Because shapes are not in an affine frame I won't be making them instances of the RotateAbout class.

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.