API Reference for Enthought Tool Suite 2.7.1

Functions for affine matrices.

Copyright:Space Telescope Science Institute
License:BSD Style
Author:Eric Jones, Enthought, Inc., eric@enthought.com

These affine operations are based coordinate system transformations, not translations of pts, etc. To translate a point, you multiply it by the affine transform matrix:

             a    b    0
[x, y, 1] *  c    d    0 = [x',y',1]
             tx   ty   1

This is the opposite order of multiplication from what many are accustomed to.

Here is a useful link:

http://mathworld.wolfram.com/AffineTransformation.html
Notes:
I'm not using a class because of possible speed implications. Currently the affine transform is a 3x3 array. Other tools use a 6-tuple of (a,b,c,d,tx,ty) to represent the transform because the other 3 array entries are constant. Other code should call methods from this module instead of manipulating the array, in case the implementation is changed at some future date.

Variables

Function summary

Functions

Imported Names

Local nameRefers to
alltruenumpy.alltrue
arctan2numpy.arctan2
cosnumpy.cos
float64numpy.float64
matrixmultiplynumpy.oldnumeric.matrixmultiply
onesnumpy.ones
ravelnumpy.ravel
shapenumpy.shape
sinnumpy.sin
zerosnumpy.zeros

Copyright © 2002-2008 Enthought, Inc.