On Fri, Mar 12, 1999 at 05:48:21PM +0800, James Henstridge wrote:

> People were wondering about if I could add an affine transformation helper
> module to gnome-python so I have.  I have included it at the end of the
> message for people who are interested (if it looks like there are some
> bugs in it, please send in the reports)

Cool.  I would add a shear which has the general matrix form

| 1  g |
|      |
| h  1 |


h=0, g nonzero gives a pure shear in the y direction
g=0, h nonzero gives a pure shear in the x direction

def shear(g=0, h=0):
    return (1, g, h, 1, 0, 0)

Here's a nice paper with examples of the basic 2-d transformations:

http://cs.fit.edu/~wds/classes/cse5255/thesis/index/index.html

Dave
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to