Monday, July 5, 2010

wumpus-core

Copperbox revision 1484.

I've re-implemented the affine transformations on Paths. Paths are not in an affine space / affine frame - so manipulating them cannot really follow the interpretations of affine geometry (notionally Paths have a zero point that stands as an origin, but they don't have basis vectors).

As they can't follow the affine interpretation, the allowed transformations (translate, rotate, scale) follow what one might expect visually. Rotate - rotates about the start point. Scale - scales with respect to the start point. Translate - simply displaces by the supplied vector.

For standard affine translations, Paths and Primitives should always be lifted to Pictures where transformations respect the affine frame. However for efficiency reasons having some (non-affine) transformations on Paths and Primitives is valuable.

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.