gs:shear-tag

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

gs:shear-tag

Post by newdep »

Hi Lutz,

what does gs:shear-tag actualy do?

Norman.
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

shear is an affine transform which shifts all x and y coordinates of a shape by a certain factor shx and shy. This is the 2D transformation matrix:

Code: Select all

 [   1   shx ]
 [  shy   1  ]
Lines are kept streight and parallel by this transformation.

See also here: http://en.wikipedia.org/wiki/Affine_transformation

and here: http://en.wikipedia.org/wiki/Shear_%28mathematics%29

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

thanks ;-)
-- (define? (Cornflakes))

Locked