1
Vote

Implement Affine function

description

Affine(geometry,float8,float8,float8,float8,float8,float8)
Applies an 2d affine transformation to the geometry. The call
                    Affine(geom, a, b, d, e, xoff, yoff)
               
represents the transformation matrix
                    /  a  b  0  xoff  \        /  a  b  xoff  \
                    |  d  e  0  yoff  |  rsp.  |  d  e  yoff  |
                    |  0  0  1  0     |        \  0  0  1     /
                    \  0  0  0  1     /
               
and the vertices are transformed as follows:
                    x' = ax + by + xoff
                    y' = dx + ey + yoff
                    z' = z

comments

jocheng wrote Apr 15, 2008 at 3:13 PM

I've implemented Translate, Scale and Affine by transformation classes inherited from IMathTransform.
So if there is any interest, please give me a notice.

wrote Feb 14, 2013 at 6:56 PM