Wiki page
[Affine Transform] by
sandro
2015-05-02 23:17:00.
0000: 44 20 32 30 31 35 2d 30 35 2d 30 32 54 32 33 3a D 2015-05-02T23:
0010: 31 37 3a 30 30 2e 34 36 34 0a 4c 20 41 66 66 69 17:00.464.L Affi
0020: 6e 65 5c 73 54 72 61 6e 73 66 6f 72 6d 0a 50 20 ne\sTransform.P
0030: 37 30 65 30 38 36 61 65 35 38 66 64 39 37 38 32 70e086ae58fd9782
0040: 30 31 31 61 63 39 64 62 38 38 65 36 34 36 36 39 011ac9db88e64669
0050: 38 32 34 36 36 30 65 34 0a 55 20 73 61 6e 64 72 824660e4.U sandr
0060: 6f 0a 57 20 33 35 38 37 38 0a 3c 61 20 68 72 65 o.W 35878.<a hre
0070: 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 f="https://www.g
0080: 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 aia-gis.it/fossi
0090: 6c 2f 6c 69 62 73 70 61 74 69 61 6c 69 74 65 2f l/libspatialite/
00a0: 77 69 6b 69 3f 6e 61 6d 65 3d 34 2e 32 2e 30 2d wiki?name=4.2.0-
00b0: 64 6f 63 22 3e 62 61 63 6b 3c 2f 61 3e 0d 0a 3c doc">back</a>..<
00c0: 68 32 3e 41 66 66 69 6e 65 20 54 72 61 6e 73 66 h2>Affine Transf
00d0: 6f 72 6d 61 74 69 6f 6e 73 3c 2f 68 32 3e 0d 0a ormations</h2>..
00e0: 53 74 61 72 74 69 6e 67 20 73 69 6e 63 65 20 76 Starting since v
00f0: 65 72 73 69 6f 6e 20 3c 62 3e 34 2e 33 2e 30 3c ersion <b>4.3.0<
0100: 2f 62 3e 20 53 70 61 74 69 61 4c 69 74 65 20 73 /b> SpatiaLite s
0110: 75 70 70 6f 72 74 73 20 73 65 76 65 72 61 6c 20 upports several
0120: 6e 65 77 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e new SQL function
0130: 73 20 62 61 73 65 64 20 6f 6e 20 3c 61 20 68 72 s based on <a hr
0140: 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 ef="http://en.wi
0150: 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 kipedia.org/wiki
0160: 2f 41 66 66 69 6e 65 5f 74 72 61 6e 73 66 6f 72 /Affine_transfor
0170: 6d 61 74 69 6f 6e 22 3e 61 66 66 69 6e 65 20 74 mation">affine t
0180: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 3c 2f ransformations</
0190: 61 3e 3b 20 75 6e 64 65 72 73 74 61 6e 64 69 6e a>; understandin
01a0: 67 20 61 6c 6c 20 74 68 65 20 75 6e 64 65 72 6c g all the underl
01b0: 61 79 69 6e 67 20 6d 61 74 68 65 6d 61 74 69 63 aying mathematic
01c0: 73 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 62 s could easily b
01d0: 65 20 61 20 72 61 74 68 65 72 20 64 69 66 66 69 e a rather diffi
01e0: 63 75 6c 74 20 74 61 73 6b 2c 20 6d 6f 72 65 20 cult task, more
01f0: 6e 6f 74 61 62 6c 79 20 69 66 20 79 6f 75 20 68 notably if you h
0200: 61 76 65 20 61 62 73 6f 6c 75 74 65 6c 79 20 6e ave absolutely n
0210: 6f 20 66 61 6d 69 6c 69 61 72 69 74 79 20 77 69 o familiarity wi
0220: 74 68 20 74 68 69 73 20 6b 69 6e 64 20 6f 66 20 th this kind of
0230: 6f 70 65 72 61 74 69 6f 6e 73 2e 3c 62 72 3e 0d operations.<br>.
0240: 0a 53 6f 20 77 65 27 6c 6c 20 73 74 61 72 74 20 .So we'll start
0250: 73 6d 6f 6f 74 68 6c 79 20 62 79 20 69 6e 74 72 smoothly by intr
0260: 6f 64 75 63 69 6e 67 20 66 69 72 73 74 20 61 20 oducing first a
0270: 76 65 72 79 20 73 69 6d 70 6c 65 20 70 72 61 63 very simple prac
0280: 74 69 63 61 6c 20 65 78 61 6d 70 6c 65 20 62 61 tical example ba
0290: 73 65 64 20 6f 6e 20 6b 69 6e 64 20 6f 66 20 61 sed on kind of a
02a0: 20 6a 6f 6b 65 20 61 62 6f 75 74 20 74 68 65 20 joke about the
02b0: 67 65 6f 67 72 61 70 68 79 20 6f 66 20 49 74 61 geography of Ita
02c0: 6c 79 20 61 6e 64 20 53 69 63 69 6c 79 2e 0d 0a ly and Sicily...
02d0: 3c 68 32 3e 46 61 6e 63 79 20 47 65 6f 67 72 61 <h2>Fancy Geogra
02e0: 70 79 20 61 6e 64 20 61 6d 75 73 69 6e 67 20 4d py and amusing M
02f0: 61 74 68 3c 2f 68 32 3e 0d 0a 3c 74 61 62 6c 65 ath</h2>..<table
0300: 20 62 6f 72 64 65 72 3d 22 31 22 20 63 65 6c 6c border="1" cell
0310: 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c spacing="4" cell
0320: 70 61 64 64 69 6e 67 3d 22 38 22 3e 0d 0a 3c 74 padding="8">..<t
0330: 72 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 50 72 65 66 r><td>..<h3>Pref
0340: 61 63 65 3c 2f 68 33 3e 0d 0a 4c 6f 6f 6b 69 6e ace</h3>..Lookin
0350: 67 20 74 6f 20 61 20 6d 61 70 20 6f 66 20 49 74 g to a map of It
0360: 61 6c 79 20 69 74 20 61 70 70 65 61 72 73 20 6f aly it appears o
0370: 62 76 69 6f 75 73 20 61 74 20 66 69 72 73 74 20 bvious at first
0380: 67 6c 61 6e 63 65 20 74 68 61 74 20 53 69 63 69 glance that Sici
0390: 6c 79 20 69 73 20 6c 6f 63 61 74 65 64 20 69 6e ly is located in
03a0: 20 61 20 76 65 72 79 20 69 6e 63 6f 6e 76 65 6e a very inconven
03b0: 69 65 6e 74 20 70 6f 73 69 74 69 6f 6e 3a 0d 0a ient position:..
03c0: 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 53 69 63 69 63 6c <ol>..<li>Sicicl
03d0: 79 20 69 73 20 70 6c 61 63 65 64 20 74 6f 6f 20 y is placed too
03e0: 66 61 72 20 53 6f 75 74 68 20 61 6e 64 20 74 6f far South and to
03f0: 6f 20 6d 75 63 68 20 63 6c 6f 73 65 20 74 6f 20 o much close to
0400: 4e 6f 72 74 68 20 41 66 72 69 63 61 3b 20 74 68 North Africa; th
0410: 69 73 20 69 6d 70 6c 69 65 73 20 61 6e 20 75 6e is implies an un
0420: 70 6c 65 61 73 61 6e 74 20 74 6f 72 72 69 64 20 pleasant torrid
0430: 73 75 6d 6d 65 72 2c 20 61 6e 64 20 69 6e 20 74 summer, and in t
0440: 75 72 6e 20 74 68 69 73 20 70 6f 73 65 73 20 73 urn this poses s
0450: 65 76 65 72 65 20 6c 69 6d 69 74 61 74 69 6f 6e evere limitation
0460: 73 20 74 6f 20 61 67 72 69 63 6f 6c 74 75 72 61 s to agricoltura
0470: 6c 20 61 63 74 69 76 69 74 69 65 73 2e 3c 2f 6c l activities.</l
0480: 69 3e 0d 0a 3c 6c 69 3e 54 68 65 20 3c 61 20 68 i>..<li>The <a h
0490: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 ref="http://en.w
04a0: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
04b0: 69 2f 53 74 72 61 69 74 5f 6f 66 5f 4d 65 73 73 i/Strait_of_Mess
04c0: 69 6e 61 22 3e 53 74 72 61 69 74 20 6f 66 20 4d ina">Strait of M
04d0: 65 73 73 69 6e 61 3c 2f 61 3e 20 69 73 20 65 78 essina</a> is ex
04e0: 61 67 67 65 72 61 74 65 64 6c 79 20 6e 61 72 72 aggeratedly narr
04f0: 6f 77 2c 20 74 68 75 73 20 70 6f 73 69 6e 67 20 ow, thus posing
0500: 73 65 76 65 72 65 20 73 65 63 75 72 69 74 79 20 severe security
0510: 72 69 73 6b 73 20 74 6f 20 74 68 65 20 6e 61 76 risks to the nav
0520: 69 67 61 74 69 6f 6e 20 6f 66 20 63 61 70 69 74 igation of capit
0530: 61 6c 20 73 68 69 70 73 20 61 6e 64 20 73 75 70 al ships and sup
0540: 65 72 74 61 6e 6b 65 72 73 2e 3c 62 72 3e 0d 0a ertankers.<br>..
0550: 45 76 65 6e 20 77 6f 72 73 74 2c 20 66 72 6f 6d Even worst, from
0560: 20 74 69 6d 65 20 74 6f 20 74 69 6d 65 20 73 6f time to time so
0570: 6d 65 20 63 72 61 7a 79 20 70 6f 6c 69 74 69 63 me crazy politic
0580: 69 61 6e 20 73 74 72 6f 6e 67 6c 79 20 61 64 76 ian strongly adv
0590: 6f 63 61 74 65 73 20 74 68 65 20 76 65 72 79 20 ocates the very
05a0: 73 74 75 70 69 64 20 69 64 65 61 20 74 6f 20 62 stupid idea to b
05b0: 75 69 6c 64 20 61 6e 20 69 6e 63 72 65 64 69 62 uild an incredib
05c0: 6c 79 20 63 6f 73 74 6c 79 20 3c 61 20 68 72 65 ly costly <a hre
05d0: 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b f="http://en.wik
05e0: 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f ipedia.org/wiki/
05f0: 53 74 72 61 69 74 5f 6f 66 5f 4d 65 73 73 69 6e Strait_of_Messin
0600: 61 5f 42 72 69 64 67 65 22 3e 62 72 69 64 67 65 a_Bridge">bridge
0610: 20 63 72 6f 73 73 69 6e 67 20 74 68 65 20 53 74 crossing the St
0620: 72 61 69 74 3c 2f 61 3e 2c 20 63 6f 6d 70 6c 65 rait</a>, comple
0630: 74 65 6c 79 20 6f 76 65 72 6c 6f 6f 6b 69 6e 67 tely overlooking
0640: 20 74 68 65 20 76 65 72 79 20 68 69 67 68 20 73 the very high s
0650: 65 69 73 6d 69 63 61 6c 20 72 69 73 6b 20 6f 66 eismical risk of
0660: 20 74 68 69 73 20 64 69 73 74 72 69 63 74 20 61 this district a
0670: 6e 64 20 70 75 72 70 6f 73 65 6c 79 20 66 6f 72 nd purposely for
0680: 67 65 74 74 69 6e 67 20 74 6f 20 72 65 6d 65 6d getting to remem
0690: 62 65 72 20 74 68 61 74 20 69 6e 20 31 39 30 38 ber that in 1908
06a0: 20 62 6f 74 68 20 74 6f 77 6e 73 20 6f 66 20 3c both towns of <
06b0: 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 a href="http://e
06c0: 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f n.wikipedia.org/
06d0: 77 69 6b 69 2f 31 39 30 38 5f 4d 65 73 73 69 6e wiki/1908_Messin
06e0: 61 5f 65 61 72 74 68 71 75 61 6b 65 22 3e 4d 65 a_earthquake">Me
06f0: 73 73 69 6e 61 20 61 6e 64 20 52 65 67 67 69 6f ssina and Reggio
0700: 20 43 61 6c 61 62 72 69 61 3c 2f 61 3e 20 77 65 Calabria</a> we
0710: 72 65 20 63 6f 6d 70 6c 65 74 65 6c 79 20 64 65 re completely de
0720: 73 74 72 6f 79 65 64 20 62 79 20 61 6e 20 65 61 stroyed by an ea
0730: 72 74 68 71 75 61 6b 65 20 66 6f 6c 6c 6f 77 65 rthquake followe
0740: 64 20 62 79 20 61 20 74 73 75 6e 61 6d 69 2e 3c d by a tsunami.<
0750: 62 72 3e 0d 0a 4d 6f 72 65 20 74 68 61 6e 20 31 br>..More than 1
0760: 30 30 2c 30 30 30 20 70 65 6f 70 6c 65 73 20 6c 00,000 peoples l
0770: 6f 73 74 20 74 68 65 69 72 20 6c 69 76 65 73 2c ost their lives,
0780: 20 61 6e 64 20 69 74 20 77 61 73 20 6f 6e 65 20 and it was one
0790: 6f 66 20 74 68 65 20 6d 6f 73 74 20 66 72 69 67 of the most frig
07a0: 68 74 65 6e 69 6e 67 20 6e 61 74 75 72 61 6c 20 htening natural
07b0: 64 69 73 61 73 74 65 72 73 20 72 65 67 69 73 74 disasters regist
07c0: 65 72 65 64 20 69 6e 20 45 75 72 6f 70 65 20 64 ered in Europe d
07d0: 75 72 69 6e 67 20 6d 6f 64 65 72 6e 20 74 69 6d uring modern tim
07e0: 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 0d es.</li>..</ol>.
07f0: 0a 53 6f 20 77 65 27 6c 6c 20 69 6d 6d 65 64 69 .So we'll immedi
0800: 61 74 65 6c 79 20 73 74 61 72 74 20 61 20 63 61 ately start a ca
0810: 73 65 20 73 74 75 64 79 20 69 6e 74 65 6e 64 65 se study intende
0820: 64 20 74 6f 20 69 64 65 6e 74 69 66 79 20 61 20 d to identify a
0830: 70 6f 73 73 69 62 6c 65 20 61 6c 74 65 72 6e 61 possible alterna
0840: 74 69 76 65 20 6c 6f 63 61 74 69 6f 6e 20 66 6f tive location fo
0850: 72 20 53 69 63 69 6c 79 2e 3c 62 72 3e 0d 0a 49 r Sicily.<br>..I
0860: 6e 63 69 64 65 6e 74 61 6c 6c 79 20 77 65 27 6c ncidentally we'l
0870: 6c 20 75 73 65 20 74 68 65 20 6e 65 77 20 53 51 l use the new SQ
0880: 4c 20 66 75 6e 63 74 69 6f 6e 73 20 62 61 73 65 L functions base
0890: 64 20 6f 6e 20 41 66 66 69 6e 65 20 54 72 61 6e d on Affine Tran
08a0: 73 66 6f 72 6d 61 74 69 6f 6e 73 20 66 6f 72 20 sformations for
08b0: 74 68 69 73 20 74 61 73 6b 2e 3c 62 72 3e 0d 0a this task.<br>..
08c0: 4c 65 74 27 73 20 67 6f 20 6f 6e 2e 20 20 0d 0a Let's go on. ..
08d0: 3c 2f 74 64 3e 3c 74 64 3e 0d 0a 3c 69 6d 67 20 </td><td>..<img
08e0: 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 src="https://www
08f0: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 .gaia-gis.it/gai
0900: 61 2d 73 69 6e 73 2f 61 66 66 69 6e 65 2d 70 69 a-sins/affine-pi
0910: 63 73 2f 73 69 63 69 6c 79 5f 30 2e 70 6e 67 22 cs/sicily_0.png"
0920: 20 61 6c 74 3d 22 77 66 73 2d 31 22 20 62 6f 72 alt="wfs-1" bor
0930: 64 65 72 3d 22 31 22 3e 0d 0a 3c 2f 74 64 3e 3c der="1">..</td><
0940: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a /tr>..<tr><td>..
0950: 3c 68 33 3e 53 74 65 70 20 23 31 3a 20 74 72 61 <h3>Step #1: tra
0960: 6e 73 6c 61 74 69 6e 67 20 53 69 63 69 6c 79 20 nslating Sicily
0970: 69 6e 74 6f 20 61 20 6d 6f 72 65 20 63 6f 6e 76 into a more conv
0980: 65 6e 69 65 6e 74 20 70 6f 73 69 74 69 6f 6e 3c enient position<
0990: 2f 68 33 3e 0d 0a 54 68 65 72 65 20 69 73 20 70 /h3>..There is p
09a0: 6c 65 6e 74 79 20 6f 66 20 66 72 65 65 20 72 6f lenty of free ro
09b0: 6f 6d 20 69 6e 20 74 68 65 20 6c 6f 77 65 72 20 om in the lower
09c0: 54 79 72 72 68 65 6e 69 61 6e 20 53 65 61 2c 20 Tyrrhenian Sea,
09d0: 73 6f 20 77 65 27 6c 6c 20 73 74 61 72 74 20 62 so we'll start b
09e0: 79 20 61 70 70 6c 79 69 6e 67 20 61 20 3c 61 20 y applying a <a
09f0: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e href="http://en.
0a00: 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 wikipedia.org/wi
0a10: 6b 69 2f 54 72 61 6e 73 6c 61 74 69 6f 6e 5f 25 ki/Translation_%
0a20: 32 38 67 65 6f 6d 65 74 72 79 25 32 39 22 3e 74 28geometry%29">t
0a30: 72 61 6e 73 6c 61 74 69 6f 6e 3c 2f 61 3e 3a 20 ranslation</a>:
0a40: 74 68 69 73 20 70 72 61 63 74 69 63 61 6c 6c 79 this practically
0a50: 20 6d 65 61 6e 73 20 61 64 64 69 6e 67 20 28 6f means adding (o
0a60: 72 20 73 75 62 63 74 72 61 63 74 69 6e 67 29 20 r subctracting)
0a70: 61 20 63 6f 6e 73 74 61 6e 74 20 76 61 6c 75 65 a constant value
0a80: 20 74 6f 20 74 68 65 20 63 6f 6f 72 64 69 6e 61 to the coordina
0a90: 74 65 73 20 6f 6e 20 62 6f 74 68 20 3c 62 3e 78 tes on both <b>x
0aa0: 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 79 3c 2f 62 </b> and <b>y</b
0ab0: 3e 20 61 78 65 73 2e 3c 62 72 3e 0d 0a 41 66 74 > axes.<br>..Aft
0ac0: 65 72 20 61 20 76 65 72 79 20 71 75 69 63 6b 20 er a very quick
0ad0: 65 78 61 6d 69 6e 61 74 69 6f 6e 20 6d 6f 76 69 examination movi
0ae0: 6e 67 20 53 69 63 69 6c 79 20 3c 62 3e 31 35 30 ng Sicily <b>150
0af0: 20 6b 6d 3c 2f 62 3e 20 28 69 2e 65 2e 20 3c 62 km</b> (i.e. <b
0b00: 3e 31 35 30 2c 30 30 30 20 6d 3c 2f 62 3e 29 20 >150,000 m</b>)
0b10: 77 65 73 74 77 61 72 64 73 20 61 6e 64 20 3c 62 westwards and <b
0b20: 3e 31 35 30 20 6b 6d 3c 2f 62 3e 20 6e 6f 72 74 >150 km</b> nort
0b30: 68 77 61 72 64 73 20 73 65 65 6d 73 20 74 6f 20 hwards seems to
0b40: 62 65 20 61 6e 20 61 62 73 6f 6c 75 74 65 6c 79 be an absolutely
0b50: 20 72 65 61 73 6f 6e 61 62 6c 65 20 63 68 6f 69 reasonable choi
0b60: 63 65 2e 3c 62 72 3e 0d 0a 53 6f 20 75 73 69 6e ce.<br>..So usin
0b70: 67 20 74 68 65 20 41 66 66 69 6e 65 20 54 72 61 g the Affine Tra
0b80: 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 53 51 4c 20 nsformation SQL
0b90: 66 75 6e 63 74 69 6f 6e 73 20 77 65 27 6c 6c 20 functions we'll
0ba0: 77 72 69 74 65 20 74 68 65 20 66 6f 6c 6c 6f 77 write the follow
0bb0: 69 6e 67 20 53 51 4c 20 73 74 61 74 65 6d 65 6e ing SQL statemen
0bc0: 74 3a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a t:..<verbatim>..
0bd0: 43 52 45 41 54 45 20 54 41 42 4c 45 20 73 69 63 CREATE TABLE sic
0be0: 69 6c 69 61 5f 31 20 41 53 0d 0a 53 45 4c 45 43 ilia_1 AS..SELEC
0bf0: 54 20 63 6f 64 5f 72 65 67 2c 20 0d 0a 20 20 20 T cod_reg, ..
0c00: 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 67 65 ATM_Transform(ge
0c10: 6f 6d 65 74 72 79 2c 0d 0a 20 20 20 20 20 20 41 ometry,.. A
0c20: 54 4d 5f 43 72 65 61 74 65 54 72 61 6e 73 6c 61 TM_CreateTransla
0c30: 74 65 28 2d 31 35 30 30 30 30 2c 20 31 35 30 30 te(-150000, 1500
0c40: 30 30 29 29 20 41 53 20 67 65 6f 6d 0d 0a 46 52 00)) AS geom..FR
0c50: 4f 4d 20 73 69 63 69 6c 69 61 5f 30 3b 0d 0a 53 OM sicilia_0;..S
0c60: 45 4c 45 43 54 20 52 65 63 6f 76 65 72 47 65 6f ELECT RecoverGeo
0c70: 6d 65 74 72 79 43 6f 6c 75 6d 6e 28 27 73 69 63 metryColumn('sic
0c80: 69 6c 69 61 5f 31 27 2c 20 27 67 65 6f 6d 27 2c ilia_1', 'geom',
0c90: 20 33 32 36 33 32 2c 20 27 4d 55 4c 54 49 50 4f 32632, 'MULTIPO
0ca0: 4c 59 47 4f 4e 27 2c 20 27 58 59 27 29 3b 0d 0a LYGON', 'XY');..
0cb0: 3c 2f 76 65 72 62 61 74 69 6d 3e 20 0d 0a 3c 62 </verbatim> ..<b
0cc0: 3e 52 65 6d 61 72 6b 73 3c 2f 62 3e 3a 0d 0a 3c >Remarks</b>:..<
0cd0: 75 6c 3e 0d 0a 3c 6c 69 3e 61 6c 6c 20 61 66 66 ul>..<li>all aff
0ce0: 69 6e 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 ine transformati
0cf0: 6f 6e 20 72 65 6c 61 74 65 64 20 53 51 4c 20 66 on related SQL f
0d00: 75 6e 63 74 69 6f 6e 20 6e 61 6d 65 73 20 73 74 unction names st
0d10: 61 72 74 20 77 69 74 68 20 61 6e 20 3c 62 3e 41 art with an <b>A
0d20: 54 4d 5f 3c 2f 62 3e 20 70 72 65 66 69 78 3a 20 TM_</b> prefix:
0d30: 74 68 69 73 20 73 69 6d 70 6c 79 20 73 74 61 6e this simply stan
0d40: 64 73 20 66 6f 72 20 3c 69 3e 3c 62 3e 3c 75 3e ds for <i><b><u>
0d50: 41 3c 2f 75 3e 3c 2f 62 3e 66 66 69 6e 65 20 3c A</u></b>ffine <
0d60: 62 3e 3c 75 3e 54 3c 2f 75 3e 3c 2f 62 3e 72 61 b><u>T</u></b>ra
0d70: 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 3c 62 3e 3c nsformation <b><
0d80: 75 3e 4d 3c 2f 75 3e 3c 2f 62 3e 61 74 72 69 78 u>M</u></b>atrix
0d90: 3c 2f 69 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e </i>.</li>..<li>
0da0: 3c 62 3e 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d <b>ATM_Transform
0db0: 28 29 3c 2f 62 3e 20 69 73 20 76 65 72 79 20 73 ()</b> is very s
0dc0: 69 6d 69 6c 61 72 20 74 6f 20 3c 62 3e 53 54 5f imilar to <b>ST_
0dd0: 54 72 61 6e 73 66 6f 72 6d 28 29 3c 2f 62 3e 3b Transform()</b>;
0de0: 20 74 68 65 20 6d 6f 73 74 20 6f 62 76 69 6f 75 the most obviou
0df0: 73 20 64 69 66 66 65 72 65 6e 63 65 20 69 73 20 s difference is
0e00: 69 6e 20 74 68 61 74 20 61 6c 6c 20 74 72 61 6e in that all tran
0e10: 73 66 6f 72 6d 61 74 69 6f 6e 20 61 72 67 75 6d sformation argum
0e20: 65 6e 74 73 20 61 72 65 20 6e 6f 77 20 65 78 70 ents are now exp
0e30: 65 63 74 65 64 20 74 6f 20 62 65 20 70 61 73 73 ected to be pass
0e40: 65 64 20 75 6e 64 65 72 20 74 68 65 20 66 6f 72 ed under the for
0e50: 6d 20 6f 66 20 61 6e 20 61 70 70 72 6f 70 72 69 m of an appropri
0e60: 61 74 65 20 3c 62 3e 42 4c 4f 42 2d 73 65 72 69 ate <b>BLOB-seri
0e70: 61 6c 69 7a 65 64 3c 2f 62 3e 20 41 66 66 69 6e alized</b> Affin
0e80: 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e e Transformation
0e90: 20 4d 61 74 72 69 78 2e 3c 2f 6c 69 3e 0d 0a 3c Matrix.</li>..<
0ea0: 6c 69 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 li><b>ATM_Create
0eb0: 54 72 61 6e 73 6c 61 74 65 28 29 3c 2f 62 3e 20 Translate()</b>
0ec0: 73 69 6d 70 6c 79 20 69 73 20 61 6e 20 53 51 4c simply is an SQL
0ed0: 20 66 75 6e 63 74 69 6f 6e 20 72 65 74 75 72 6e function return
0ee0: 69 6e 67 20 61 20 3c 62 3e 42 4c 4f 42 2d 73 65 ing a <b>BLOB-se
0ef0: 72 69 61 6c 69 7a 65 64 3c 2f 62 3e 20 41 66 66 rialized</b> Aff
0f00: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
0f10: 6f 6e 20 4d 61 74 72 69 78 2e 3c 62 72 3e 0d 0a on Matrix.<br>..
0f20: 54 68 65 20 42 4c 4f 42 2d 4d 61 74 72 69 78 20 The BLOB-Matrix
0f30: 77 69 6c 6c 20 62 65 20 69 6e 69 74 69 61 6c 69 will be initiali
0f40: 7a 65 64 20 73 6f 20 74 6f 20 72 65 70 72 65 73 zed so to repres
0f50: 65 6e 74 20 61 20 73 69 6d 70 6c 65 20 3c 62 3e ent a simple <b>
0f60: 32 44 20 54 72 61 6e 73 6c 61 74 65 3c 2f 62 3e 2D Translate</b>
0f70: 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 accordingly to
0f80: 3c 62 3e 28 74 78 2c 20 74 79 29 3c 2f 62 3e 20 <b>(tx, ty)</b>
0f90: 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0d 0a arguments.<br>..
0fa0: 59 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 You could eventu
0fb0: 61 6c 6c 79 20 64 65 66 69 6e 65 20 61 20 63 6f ally define a co
0fc0: 6d 70 6c 65 74 65 20 3c 62 3e 33 44 20 54 72 61 mplete <b>3D Tra
0fd0: 6e 73 6c 61 74 65 3c 2f 62 3e 20 62 79 20 70 61 nslate</b> by pa
0fe0: 73 73 69 6e 67 20 3c 62 3e 28 74 78 2c 20 74 79 ssing <b>(tx, ty
0ff0: 2c 20 74 7a 29 3c 2f 62 3e 20 61 72 67 75 6d 65 , tz)</b> argume
1000: 6e 74 73 2c 20 62 75 74 20 74 68 69 73 20 69 73 nts, but this is
1010: 6e 27 74 20 73 74 72 69 63 74 6c 79 20 72 65 71 n't strictly req
1020: 75 69 72 65 64 20 69 6e 20 6f 75 72 20 63 75 72 uired in our cur
1030: 72 65 6e 74 20 65 78 61 6d 70 6c 65 2e 0d 0a 3c rent example...<
1040: 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 0d /ul>..</td><td>.
1050: 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 .<img src="https
1060: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
1070: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 66 it/gaia-sins/aff
1080: 69 6e 65 2d 70 69 63 73 2f 73 69 63 69 6c 79 5f ine-pics/sicily_
1090: 31 2e 70 6e 67 22 20 61 6c 74 3d 22 77 66 73 2d 1.png" alt="wfs-
10a0: 31 22 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d 0a 1" border="1">..
10b0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
10c0: 3c 74 64 3e 0d 0a 3c 68 33 3e 53 74 65 70 20 23 <td>..<h3>Step #
10d0: 32 3a 20 72 6f 74 61 74 69 6e 67 20 53 69 63 69 2: rotating Sici
10e0: 6c 79 20 73 6f 20 74 6f 20 67 65 74 20 61 20 6e ly so to get a n
10f0: 69 63 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 ice horizontal a
1100: 6c 69 67 6e 65 6d 65 6e 74 3c 2f 68 33 3e 0d 0a lignement</h3>..
1110: 41 6c 69 67 6e 69 6e 67 20 74 68 65 20 73 6f 75 Aligning the sou
1120: 74 68 65 72 6e 20 73 68 6f 72 65 73 20 6f 66 20 thern shores of
1130: 53 69 63 69 6c 79 20 74 6f 20 61 6e 20 61 6c 6d Sicily to an alm
1140: 6f 73 74 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 6c ost horizontal l
1150: 69 6e 65 20 77 69 6c 6c 20 73 75 72 65 6c 79 20 ine will surely
1160: 6c 65 61 64 20 74 6f 20 61 20 6d 6f 72 65 20 6e lead to a more n
1170: 69 63 65 6c 79 20 6f 72 64 65 72 65 64 20 6c 61 icely ordered la
1180: 79 6f 75 74 3a 20 73 6f 20 77 65 20 68 61 76 65 yout: so we have
1190: 20 6e 6f 77 20 74 6f 20 61 70 70 6c 79 20 61 20 now to apply a
11a0: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f <a href="http://
11b0: 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 en.wikipedia.org
11c0: 2f 77 69 6b 69 2f 52 6f 74 61 74 69 6f 6e 5f 25 /wiki/Rotation_%
11d0: 32 38 6d 61 74 68 65 6d 61 74 69 63 73 25 32 39 28mathematics%29
11e0: 22 3e 63 6f 75 6e 74 65 72 63 6c 6f 63 6b 77 69 ">counterclockwi
11f0: 73 65 20 72 6f 74 61 74 69 6f 6e 3c 2f 61 3e 20 se rotation</a>
1200: 6f 66 20 61 62 6f 75 74 20 3c 62 3e 32 35 2e 30 of about <b>25.0
1210: 20 64 65 67 72 65 65 73 3c 2f 62 3e 2e 3c 62 72 degrees</b>.<br
1220: 3e 0d 0a 54 68 61 6e 6b 73 20 74 6f 20 41 66 66 >..Thanks to Aff
1230: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
1240: 6f 6e 73 2c 20 77 65 20 63 61 6e 20 63 6f 6d 62 ons, we can comb
1250: 69 6e 65 20 62 6f 74 68 20 74 68 65 20 70 72 65 ine both the pre
1260: 76 69 6f 75 73 20 74 72 61 6e 73 6c 61 74 69 6f vious translatio
1270: 6e 20 61 6e 64 20 74 68 65 20 63 75 72 72 65 6e n and the curren
1280: 74 20 72 6f 74 61 74 69 6f 6e 20 69 6e 74 6f 20 t rotation into
1290: 61 20 73 69 6e 67 6c 65 20 6d 6f 76 65 6d 65 6e a single movemen
12a0: 74 20 28 61 20 73 6f 20 63 61 6c 6c 65 64 20 3c t (a so called <
12b0: 62 3e 72 6f 74 6f 74 72 61 6e 73 6c 61 74 69 6f b>rototranslatio
12c0: 6e 3c 2f 62 3e 29 2e 3c 62 72 3e 0d 0a 57 65 20 n</b>).<br>..We
12d0: 73 69 6d 70 6c 79 20 68 61 76 65 20 74 6f 20 65 simply have to e
12e0: 78 65 63 75 74 65 20 74 68 65 20 66 6f 6c 6c 6f xecute the follo
12f0: 77 69 6e 67 20 53 51 4c 20 73 74 61 74 65 6d 65 wing SQL stateme
1300: 6e 74 3a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 43 nt:..<verbatim>C
1310: 52 45 41 54 45 20 54 41 42 4c 45 20 73 69 63 69 REATE TABLE sici
1320: 6c 69 61 5f 32 20 41 53 0d 0a 53 45 4c 45 43 54 lia_2 AS..SELECT
1330: 20 63 6f 64 5f 72 65 67 2c 20 0d 0a 20 20 20 41 cod_reg, .. A
1340: 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 67 65 6f TM_Transform(geo
1350: 6d 65 74 72 79 2c 0d 0a 20 20 20 20 20 20 41 54 metry,.. AT
1360: 4d 5f 54 72 61 6e 73 6c 61 74 65 28 2d 31 35 30 M_Translate(-150
1370: 30 30 30 2c 20 31 35 30 30 30 30 2c 0d 0a 20 20 000, 150000,..
1380: 20 20 20 20 20 20 20 41 54 4d 5f 54 72 61 6e 73 ATM_Trans
1390: 6c 61 74 65 28 63 78 2c 20 63 79 2c 0d 0a 20 20 late(cx, cy,..
13a0: 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f 52 6f ATM_Ro
13b0: 74 61 74 65 28 32 35 2c 0d 0a 20 20 20 20 20 20 tate(25,..
13c0: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 43 72 65 ATM_Cre
13d0: 61 74 65 54 72 61 6e 73 6c 61 74 65 28 2d 63 78 ateTranslate(-cx
13e0: 2c 20 2d 63 79 29 29 29 29 29 20 41 53 20 67 65 , -cy))))) AS ge
13f0: 6f 6d 0d 0a 46 52 4f 4d 20 28 53 45 4c 45 43 54 om..FROM (SELECT
1400: 20 63 6f 64 5f 72 65 67 2c 20 53 54 5f 58 28 63 cod_reg, ST_X(c
1410: 65 6e 74 72 6f 69 64 29 20 41 53 20 63 78 2c 20 entroid) AS cx,
1420: 53 54 5f 59 28 63 65 6e 74 72 6f 69 64 29 20 41 ST_Y(centroid) A
1430: 53 20 63 79 2c 20 67 65 6f 6d 65 74 72 79 0d 0a S cy, geometry..
1440: 20 20 20 20 20 20 46 52 4f 4d 20 28 53 45 4c 45 FROM (SELE
1450: 43 54 20 63 6f 64 5f 72 65 67 2c 20 53 54 5f 43 CT cod_reg, ST_C
1460: 65 6e 74 72 6f 69 64 28 67 65 6f 6d 65 74 72 79 entroid(geometry
1470: 29 20 41 53 20 63 65 6e 74 72 6f 69 64 2c 20 67 ) AS centroid, g
1480: 65 6f 6d 65 74 72 79 20 0d 0a 20 20 20 20 20 20 eometry ..
1490: 20 20 20 20 20 20 46 52 4f 4d 20 73 69 63 69 6c FROM sicil
14a0: 69 61 5f 30 29 20 41 53 20 67 31 0d 0a 29 20 41 ia_0) AS g1..) A
14b0: 53 20 67 32 3b 0d 0a 53 45 4c 45 43 54 20 52 65 S g2;..SELECT Re
14c0: 63 6f 76 65 72 47 65 6f 6d 65 74 72 79 43 6f 6c coverGeometryCol
14d0: 75 6d 6e 28 27 73 69 63 69 6c 69 61 5f 32 27 2c umn('sicilia_2',
14e0: 20 27 67 65 6f 6d 27 2c 20 33 32 36 33 32 2c 20 'geom', 32632,
14f0: 27 4d 55 4c 54 49 50 4f 4c 59 47 4f 4e 27 2c 20 'MULTIPOLYGON',
1500: 27 58 59 27 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 'XY');..</verbat
1510: 69 6d 3e 20 20 0d 0a 3c 62 3e 52 65 6d 61 72 6b im> ..<b>Remark
1520: 73 3c 2f 62 3e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c s</b>:..<ul>..<l
1530: 69 3e 63 6f 72 72 65 63 74 6c 79 20 68 61 6e 64 i>correctly hand
1540: 6c 69 6e 67 20 52 6f 74 61 74 69 6f 6e 20 69 73 ling Rotation is
1550: 20 72 61 74 68 65 72 20 63 6f 6d 70 6c 65 78 2e rather complex.
1560: 0d 0a 41 6e 79 20 72 6f 74 61 74 69 6f 6e 20 77 ..Any rotation w
1570: 69 6c 6c 20 61 6c 77 61 79 73 20 69 6d 70 6c 79 ill always imply
1580: 20 61 20 3c 62 3e 66 69 78 65 64 20 63 65 6e 74 a <b>fixed cent
1590: 65 72 20 70 6f 69 6e 74 3c 2f 62 3e 2c 20 61 6e er point</b>, an
15a0: 64 20 62 79 20 64 65 66 61 75 6c 74 20 74 68 69 d by default thi
15b0: 73 20 69 73 20 65 78 61 63 74 6c 79 20 70 6c 61 s is exactly pla
15c0: 63 65 64 20 61 74 20 74 68 65 20 63 6f 6f 72 64 ced at the coord
15d0: 69 6e 61 74 65 73 20 6f 72 69 67 69 6e 3a 20 3c inates origin: <
15e0: 62 3e 28 30 2c 20 30 29 3c 2f 62 3e 20 28 69 6e b>(0, 0)</b> (in
15f0: 20 74 68 65 20 3c 62 3e 32 44 3c 2f 62 3e 20 63 the <b>2D</b> c
1600: 61 73 65 29 20 6f 72 20 3c 62 3e 28 30 2c 20 30 ase) or <b>(0, 0
1610: 2c 20 30 29 3c 2f 62 3e 20 28 69 6e 20 74 68 65 , 0)</b> (in the
1620: 20 3c 62 3e 33 44 3c 2f 62 3e 20 63 61 73 65 29 <b>3D</b> case)
1630: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 73 6f 20 61 .</li>..<li>so a
1640: 20 76 65 72 79 20 6e 61 69 76 65 20 61 74 74 65 very naive atte
1650: 6d 70 74 20 74 6f 20 64 69 72 65 63 74 6c 79 20 mpt to directly
1660: 69 6e 76 6f 6b 65 20 3c 62 3e 41 54 4d 5f 52 6f invoke <b>ATM_Ro
1670: 74 61 74 65 28 32 35 29 3c 2f 62 3e 20 77 69 6c tate(25)</b> wil
1680: 6c 20 73 69 6d 70 6c 79 20 72 65 6c 6f 63 61 74 l simply relocat
1690: 65 20 53 69 63 69 6c 79 20 69 6e 20 53 6f 75 74 e Sicily in Sout
16a0: 68 65 72 6e 20 53 70 61 69 6e 2c 20 61 6e 64 20 hern Spain, and
16b0: 74 68 69 73 20 61 62 73 6f 6c 75 74 65 6c 79 20 this absolutely
16c0: 69 73 6e 27 74 20 6f 75 72 20 69 6e 74 65 6e 74 isn't our intent
16d0: 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 77 ion.</li>..<li>w
16e0: 68 61 74 20 77 65 20 72 65 61 6c 6c 79 20 6e 65 hat we really ne
16f0: 65 64 20 69 73 20 61 20 6d 6f 72 65 20 63 6f 6d ed is a more com
1700: 70 6c 65 78 20 73 65 71 75 65 6e 63 65 20 6f 66 plex sequence of
1710: 20 63 68 61 69 6e 65 64 20 74 72 61 6e 73 66 6f chained transfo
1720: 72 6d 61 74 69 6f 6e 73 3a 0d 0a 3c 6f 6c 3e 0d rmations:..<ol>.
1730: 0a 3c 6c 69 3e 77 65 27 6c 6c 20 73 74 61 72 74 .<li>we'll start
1740: 20 66 69 72 73 74 20 62 79 20 63 72 65 61 74 69 first by creati
1750: 6e 67 20 61 20 6e 65 77 20 3c 62 3e 42 4c 4f 42 ng a new <b>BLOB
1760: 2d 4d 61 74 69 78 3c 2f 62 3e 20 69 6e 74 65 6e -Matix</b> inten
1770: 64 65 64 20 74 6f 20 72 65 6c 6f 63 61 74 65 20 ded to relocate
1780: 53 69 63 69 6c 79 27 73 20 3c 61 20 68 72 65 66 Sicily's <a href
1790: 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b 69 ="http://en.wiki
17a0: 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 43 pedia.org/wiki/C
17b0: 65 6e 74 72 6f 69 64 22 3e 63 65 6e 74 72 6f 69 entroid">centroi
17c0: 64 3c 2f 61 3e 20 65 78 61 63 74 6c 79 20 6f 6e d</a> exactly on
17d0: 20 74 68 65 20 63 6f 6f 72 64 69 6e 61 74 65 73 the coordinates
17e0: 20 6f 72 69 67 69 6e 3a 20 3c 62 3e 41 54 4d 5f origin: <b>ATM_
17f0: 43 72 65 61 74 65 54 72 61 6e 73 6c 61 74 65 28 CreateTranslate(
1800: 2d 63 78 2c 20 2d 63 79 29 3c 2f 62 3e 3c 2f 6c -cx, -cy)</b></l
1810: 69 3e 20 0d 0a 3c 6c 69 3e 6e 6f 77 20 77 65 20 i> ..<li>now we
1820: 63 61 6e 20 73 61 66 65 6c 79 20 63 68 61 69 6e can safely chain
1830: 20 74 68 65 20 69 6e 74 65 6e 64 65 64 20 52 6f the intended Ro
1840: 74 61 74 69 6f 6e 20 69 6e 74 6f 20 74 68 65 20 tation into the
1850: 6f 76 65 72 61 6c 6c 20 74 72 61 6e 73 66 6f 72 overall transfor
1860: 6d 61 74 69 6f 6e 20 73 74 61 63 6b 3a 20 3c 62 mation stack: <b
1870: 3e 41 54 4d 5f 52 6f 74 61 74 65 28 32 35 2c 20 >ATM_Rotate(25,
1880: 61 74 6d 2d 62 6c 6f 62 29 3c 2f 62 3e 3c 2f 6c atm-blob)</b></l
1890: 69 3e 0d 0a 3c 6c 69 3e 61 66 74 65 72 20 61 70 i>..<li>after ap
18a0: 70 6c 79 69 6e 67 20 74 68 65 20 52 6f 74 61 74 plying the Rotat
18b0: 69 6f 6e 20 77 65 20 6e 6f 77 20 68 61 76 65 20 ion we now have
18c0: 74 6f 20 72 65 6c 6f 63 61 74 65 20 53 69 63 69 to relocate Sici
18d0: 6c 79 20 69 6e 20 69 74 73 20 69 6e 69 74 69 61 ly in its initia
18e0: 6c 20 70 6f 73 69 74 69 6f 6e 3a 20 3c 62 3e 41 l position: <b>A
18f0: 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 63 78 2c TM_Translate(cx,
1900: 20 63 79 2c 20 61 74 6d 2d 62 6c 6f 62 29 3c 2f cy, atm-blob)</
1910: 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 6e 64 b></li>..<li>and
1920: 20 66 69 6e 61 6c 6c 79 20 77 65 27 6c 6c 20 61 finally we'll a
1930: 70 70 6c 79 20 74 68 65 20 54 72 61 6e 73 6c 61 pply the Transla
1940: 74 69 6f 6e 20 69 6e 74 65 6e 64 65 64 20 74 6f tion intended to
1950: 20 72 65 70 6f 73 69 74 69 6f 6e 20 53 69 63 69 reposition Sici
1960: 6c 79 20 77 65 73 74 77 61 72 64 73 20 61 6e 64 ly westwards and
1970: 20 6e 6f 74 68 77 61 72 64 73 3a 20 3c 62 3e 41 nothwards: <b>A
1980: 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 2d 31 35 TM_Translate(-15
1990: 30 30 30 30 2c 20 31 35 30 30 30 30 2c 20 61 74 0000, 150000, at
19a0: 6d 2d 62 6c 6f 62 29 3c 2f 62 3e 3c 62 72 3e 0d m-blob)</b><br>.
19b0: 0a 3c 69 3e 77 65 27 76 65 20 75 73 65 64 20 74 .<i>we've used t
19c0: 77 6f 20 73 65 70 61 72 61 74 65 20 74 72 61 6e wo separate tran
19d0: 73 6c 61 74 69 6f 6e 73 20 73 69 6d 70 6c 79 20 slations simply
19e0: 66 6f 72 20 64 69 64 61 63 74 69 63 20 63 6c 61 for didactic cla
19f0: 72 69 74 79 3a 20 77 65 20 63 6f 75 6c 64 20 65 rity: we could e
1a00: 61 73 69 6c 79 20 6d 65 72 67 65 20 62 6f 74 68 asily merge both
1a10: 20 74 68 65 6d 20 69 6e 74 6f 20 61 20 73 69 6e them into a sin
1a20: 67 6c 65 20 74 72 61 6e 73 6c 61 74 69 6f 6e 3a gle translation:
1a30: 3c 62 72 3e 20 41 54 4d 5f 54 72 61 6e 73 6c 61 <br> ATM_Transla
1a40: 74 65 28 63 78 20 2d 20 31 35 30 30 30 30 2c 20 te(cx - 150000,
1a50: 63 79 20 2b 20 31 35 30 30 30 30 2c 20 61 74 6d cy + 150000, atm
1a60: 2d 62 6c 6f 62 29 3c 2f 69 3e 3c 2f 6c 69 3e 0d -blob)</i></li>.
1a70: 0a 3c 6c 69 3e 74 68 69 73 20 77 61 79 20 3c 62 .<li>this way <b
1a80: 3e 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 29 >ATM_Transform()
1a90: 3c 2f 62 3e 20 77 69 6c 6c 20 72 65 63 65 69 76 </b> will receiv
1aa0: 65 20 74 68 65 20 66 69 6e 61 6c 20 3c 62 3e 42 e the final <b>B
1ab0: 4c 4f 42 2d 4d 61 74 72 69 78 3c 2f 62 3e 20 72 LOB-Matrix</b> r
1ac0: 65 73 75 6c 74 69 6e 67 20 62 79 20 63 68 61 69 esulting by chai
1ad0: 6e 69 6e 67 20 61 6c 6c 20 74 68 65 20 61 62 6f ning all the abo
1ae0: 76 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f ve transformatio
1af0: 6e 20 73 74 65 70 73 20 69 6e 20 74 68 65 20 63 n steps in the c
1b00: 6f 72 72 65 63 74 20 73 65 71 75 65 6e 63 65 2e orrect sequence.
1b10: 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 3c 2f 6c 69 </li>..</ol></li
1b20: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 3c 75 3e 56 65 72 >..<li><b><u>Ver
1b30: 79 20 69 6d 70 6f 72 74 61 6e 74 20 6e 6f 74 69 y important noti
1b40: 63 65 3c 2f 75 3e 3c 2f 62 3e 3a 20 41 66 66 69 ce</u></b>: Affi
1b50: 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne Transformatio
1b60: 6e 73 20 3c 75 3e 61 72 65 20 6e 6f 74 20 63 6f ns <u>are not co
1b70: 6d 6d 75 74 61 74 69 76 65 3c 2f 75 3e 3a 20 74 mmutative</u>: t
1b80: 68 65 20 72 65 6c 61 74 69 76 65 20 6f 72 64 65 he relative orde
1b90: 72 20 6f 66 20 73 75 62 73 65 71 75 65 6e 74 20 r of subsequent
1ba0: 6f 70 65 72 61 74 69 6f 6e 73 20 69 6e 20 61 20 operations in a
1bb0: 63 6f 6d 70 6c 65 78 20 74 72 61 6e 73 66 6f 72 complex transfor
1bc0: 6d 61 74 69 6f 6e 20 63 68 61 69 6e 20 73 68 6f mation chain sho
1bd0: 75 6c 64 20 61 6c 77 61 79 73 20 62 65 20 76 65 uld always be ve
1be0: 72 79 20 63 61 72 65 66 75 6c 6c 79 20 63 6f 6e ry carefully con
1bf0: 73 69 64 65 72 65 64 2e 3c 2f 6c 69 3e 0d 0a 3c sidered.</li>..<
1c00: 6c 69 3e 61 6c 6c 20 74 68 65 20 3c 62 3e 46 52 li>all the <b>FR
1c10: 4f 4d 20 28 53 45 4c 45 43 54 20 2e 2e 2e 20 46 OM (SELECT ... F
1c20: 52 4f 4d 20 28 53 45 4c 45 43 54 20 2e 2e 2e 29 ROM (SELECT ...)
1c30: 20 41 53 20 67 31 29 20 41 53 20 67 32 3c 2f 62 AS g1) AS g2</b
1c40: 3e 20 73 74 75 66 66 20 73 69 6d 70 6c 79 20 69 > stuff simply i
1c50: 73 20 61 20 72 61 74 68 65 72 20 74 72 69 76 69 s a rather trivi
1c60: 61 6c 20 53 51 4c 20 74 72 69 63 6b 20 62 61 73 al SQL trick bas
1c70: 65 64 20 6f 6e 20 74 77 6f 20 6e 65 73 74 65 64 ed on two nested
1c80: 20 73 75 62 2d 71 75 65 72 69 65 73 2e 3c 62 72 sub-queries.<br
1c90: 3e 0d 0a 69 74 27 73 20 69 6e 64 65 6e 74 65 64 >..it's indented
1ca0: 20 73 63 6f 70 65 20 73 69 6d 70 6c 79 20 69 73 scope simply is
1cb0: 20 61 76 6f 69 64 69 6e 67 20 74 6f 20 63 61 6c avoiding to cal
1cc0: 6c 20 74 6f 6f 20 6d 61 6e 79 20 74 69 6d 65 73 l too many times
1cd0: 20 53 54 5f 43 65 6e 74 72 6f 69 64 28 29 2c 20 ST_Centroid(),
1ce0: 53 54 5f 58 28 29 20 61 6e 64 20 53 54 5f 59 28 ST_X() and ST_Y(
1cf0: 29 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 67 65 ) in order to ge
1d00: 74 20 74 68 65 20 63 65 6e 74 72 6f 69 64 20 63 t the centroid c
1d10: 6f 6f 72 64 69 6e 61 74 65 73 2e 3c 2f 6c 69 3e oordinates.</li>
1d20: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 ..</ul>..</td><t
1d30: 64 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 d>..<img src="ht
1d40: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
1d50: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
1d60: 61 66 66 69 6e 65 2d 70 69 63 73 2f 73 69 63 69 affine-pics/sici
1d70: 6c 79 5f 32 2e 70 6e 67 22 20 61 6c 74 3d 22 77 ly_2.png" alt="w
1d80: 66 73 2d 31 22 20 62 6f 72 64 65 72 3d 22 31 22 fs-1" border="1"
1d90: 3e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c >..</td></tr>..<
1da0: 74 72 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 53 74 65 tr><td>..<h3>Ste
1db0: 70 20 23 33 3a 20 69 6e 66 6c 61 74 69 6e 67 20 p #3: inflating
1dc0: 61 6e 64 20 72 65 73 68 61 70 69 6e 67 20 53 69 and reshaping Si
1dd0: 63 69 6c 79 3c 2f 68 33 3e 0d 0a 41 6e 20 69 6e cily</h3>..An in
1de0: 63 72 65 61 73 65 64 20 73 75 72 66 61 63 65 20 creased surface
1df0: 69 73 20 73 75 72 65 6c 79 20 77 65 6c 63 6f 6d is surely welcom
1e00: 65 2c 20 62 65 63 61 75 73 65 20 69 74 20 61 75 e, because it au
1e10: 74 6f 6d 61 74 69 63 61 6c 6c 79 20 69 6d 70 6c tomatically impl
1e20: 69 65 73 20 6d 6f 72 65 20 61 67 72 69 63 75 6c ies more agricul
1e30: 74 75 72 61 6c 20 6c 61 6e 64 73 3a 20 6f 6e 20 tural lands: on
1e40: 74 68 65 20 6f 74 68 65 72 20 68 61 6e 64 20 73 the other hand s
1e50: 68 6f 72 74 65 6e 69 6e 67 20 61 20 6c 69 74 74 hortening a litt
1e60: 6c 65 20 62 69 74 20 74 68 65 20 6c 65 6e 67 74 le bit the lengt
1e70: 68 20 6f 66 20 74 68 65 20 73 6f 75 74 68 65 72 h of the souther
1e80: 6e 20 63 6f 61 73 74 6c 69 6e 65 20 77 69 6c 6c n coastline will
1e90: 20 73 75 72 65 6c 79 20 66 61 63 69 6c 69 74 61 surely facilita
1ea0: 74 65 20 6d 6f 62 69 6c 69 74 79 20 61 6e 64 20 te mobility and
1eb0: 63 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 73 2e 3c communications.<
1ec0: 62 72 3e 0d 0a 53 6f 20 77 65 27 6c 6c 20 6e 6f br>..So we'll no
1ed0: 77 20 61 70 70 6c 79 20 61 20 3c 61 20 68 72 65 w apply a <a hre
1ee0: 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b f="http://en.wik
1ef0: 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f ipedia.org/wiki/
1f00: 53 63 61 6c 69 6e 67 5f 25 32 38 67 65 6f 6d 65 Scaling_%28geome
1f10: 74 72 79 25 32 39 22 3e 73 63 61 6c 69 6e 67 3c try%29">scaling<
1f20: 2f 61 3e 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 /a> transformati
1f30: 6f 6e 20 75 73 69 6e 67 20 74 77 6f 20 64 69 66 on using two dif
1f40: 66 65 72 65 6e 74 20 76 61 6c 75 65 73 3a 20 3c ferent values: <
1f50: 62 3e 73 78 3d 30 2e 39 3c 2f 62 3e 20 61 6e 64 b>sx=0.9</b> and
1f60: 20 3c 62 3e 73 79 3d 31 2e 33 3c 2f 62 3e 2e 3c <b>sy=1.3</b>.<
1f70: 62 72 3e 0d 0a 4f 6e 63 65 20 61 67 61 69 6e 2c br>..Once again,
1f80: 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 Affine Transfor
1f90: 6d 61 74 69 6f 6e 73 20 65 6e 61 62 6c 65 20 75 mations enable u
1fa0: 73 20 74 6f 20 63 6f 6d 62 69 6e 65 20 61 6c 74 s to combine alt
1fb0: 6f 67 65 74 68 65 72 20 62 6f 74 68 20 74 72 61 ogether both tra
1fc0: 6e 73 6c 61 74 65 2c 20 72 6f 74 61 74 65 20 61 nslate, rotate a
1fd0: 6e 64 20 73 63 61 6c 65 20 69 6e 74 6f 20 61 20 nd scale into a
1fe0: 73 69 6e 67 6c 65 20 74 72 61 6e 73 66 6f 72 6d single transform
1ff0: 61 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 54 68 69 73 ation.<br>..This
2000: 20 69 73 20 74 68 65 20 63 6f 72 72 65 73 70 6f is the correspo
2010: 6e 64 69 6e 67 20 53 51 4c 20 73 74 61 74 65 6d nding SQL statem
2020: 65 6e 74 3a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e ent:..<verbatim>
2030: 0d 0a 43 52 45 41 54 45 20 54 41 42 4c 45 20 73 ..CREATE TABLE s
2040: 69 63 69 6c 69 61 5f 33 20 41 53 0d 0a 53 45 4c icilia_3 AS..SEL
2050: 45 43 54 20 63 6f 64 5f 72 65 67 2c 20 0d 0a 20 ECT cod_reg, ..
2060: 20 20 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 ATM_Transform(
2070: 67 65 6f 6d 65 74 72 79 2c 0d 0a 20 20 20 20 20 geometry,..
2080: 20 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 2d ATM_Translate(-
2090: 31 35 30 30 30 30 2c 20 31 35 30 30 30 30 2c 0d 150000, 150000,.
20a0: 0a 20 20 20 20 20 20 20 20 20 41 54 4d 5f 54 72 . ATM_Tr
20b0: 61 6e 73 6c 61 74 65 28 63 78 2c 20 63 79 2c 0d anslate(cx, cy,.
20c0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 54 4d . ATM
20d0: 5f 53 63 61 6c 65 28 30 2e 39 2c 20 31 2e 33 2c _Scale(0.9, 1.3,
20e0: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..
20f0: 20 41 54 4d 5f 52 6f 74 61 74 65 28 32 35 2c 0d ATM_Rotate(25,.
2100: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .
2110: 20 20 20 41 54 4d 5f 43 72 65 61 74 65 54 72 61 ATM_CreateTra
2120: 6e 73 6c 61 74 65 28 2d 63 78 2c 20 2d 63 79 29 nslate(-cx, -cy)
2130: 29 29 29 29 29 20 41 53 20 67 65 6f 6d 0d 0a 46 ))))) AS geom..F
2140: 52 4f 4d 20 28 53 45 4c 45 43 54 20 63 6f 64 5f ROM (SELECT cod_
2150: 72 65 67 2c 20 53 54 5f 58 28 63 65 6e 74 72 6f reg, ST_X(centro
2160: 69 64 29 20 41 53 20 63 78 2c 20 53 54 5f 59 28 id) AS cx, ST_Y(
2170: 63 65 6e 74 72 6f 69 64 29 20 41 53 20 63 79 2c centroid) AS cy,
2180: 20 67 65 6f 6d 65 74 72 79 0d 0a 20 20 20 20 20 geometry..
2190: 20 46 52 4f 4d 20 28 53 45 4c 45 43 54 20 63 6f FROM (SELECT co
21a0: 64 5f 72 65 67 2c 20 53 54 5f 43 65 6e 74 72 6f d_reg, ST_Centro
21b0: 69 64 28 67 65 6f 6d 65 74 72 79 29 20 41 53 20 id(geometry) AS
21c0: 63 65 6e 74 72 6f 69 64 2c 20 67 65 6f 6d 65 74 centroid, geomet
21d0: 72 79 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ry ..
21e0: 20 46 52 4f 4d 20 73 69 63 69 6c 69 61 5f 30 29 FROM sicilia_0)
21f0: 20 41 53 20 67 31 0d 0a 29 20 41 53 20 67 32 3b AS g1..) AS g2;
2200: 0d 0a 53 45 4c 45 43 54 20 52 65 63 6f 76 65 72 ..SELECT Recover
2210: 47 65 6f 6d 65 74 72 79 43 6f 6c 75 6d 6e 28 27 GeometryColumn('
2220: 73 69 63 69 6c 69 61 5f 33 27 2c 20 27 67 65 6f sicilia_3', 'geo
2230: 6d 27 2c 20 33 32 36 33 32 2c 20 27 4d 55 4c 54 m', 32632, 'MULT
2240: 49 50 4f 4c 59 47 4f 4e 27 2c 20 27 58 59 27 29 IPOLYGON', 'XY')
2250: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 20 0d ;..</verbatim> .
2260: 0a 3c 62 3e 52 65 6d 61 72 6b 73 3c 2f 62 3e 3a .<b>Remarks</b>:
2270: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 72 ..<ul>..<li>ther
2280: 65 20 69 73 20 6e 6f 74 68 69 6e 67 20 72 65 61 e is nothing rea
2290: 6c 6c 79 20 6e 65 77 20 69 6e 20 74 68 69 73 3a lly new in this:
22a0: 20 77 65 27 6c 6c 20 73 69 6d 70 6c 79 20 63 68 we'll simply ch
22b0: 61 69 6e 20 79 65 74 20 61 6e 6f 74 68 65 72 20 ain yet another
22c0: 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 69 transformation i
22d0: 6e 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 n the appropriat
22e0: 65 20 73 65 71 75 65 6e 63 65 20 6f 72 64 65 72 e sequence order
22f0: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 41 .</li>..<li><b>A
2300: 54 4d 5f 53 63 61 6c 65 28 73 78 2c 20 73 79 29 TM_Scale(sx, sy)
2310: 3c 2f 62 3e 20 69 73 20 69 6e 74 65 6e 64 65 64 </b> is intended
2320: 20 66 6f 72 20 74 68 65 20 73 69 6d 70 6c 65 72 for the simpler
2330: 20 3c 62 3e 32 44 3c 2f 62 3e 20 63 61 73 65 2e <b>2D</b> case.
2340: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 74 68 </li>..<li>in th
2350: 65 20 6d 6f 72 65 20 67 65 6e 65 72 61 6c 20 3c e more general <
2360: 62 3e 33 44 3c 2f 62 3e 20 63 61 73 65 20 79 6f b>3D</b> case yo
2370: 75 20 63 61 6e 20 69 6e 76 6f 6b 65 20 3c 62 3e u can invoke <b>
2380: 41 54 4d 5f 53 63 61 6c 65 28 73 78 2c 20 73 79 ATM_Scale(sx, sy
2390: 2c 20 73 7a 29 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a , sz)</b></li>..
23a0: 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e </ul>..</td><td>
23b0: 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 ..<img src="http
23c0: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
23d0: 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 .it/gaia-sins/af
23e0: 66 69 6e 65 2d 70 69 63 73 2f 73 69 63 69 6c 79 fine-pics/sicily
23f0: 5f 33 2e 70 6e 67 22 20 61 6c 74 3d 22 77 66 73 _3.png" alt="wfs
2400: 2d 31 22 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d -1" border="1">.
2410: 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 .</td></tr>..<tr
2420: 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 53 74 65 70 20 ><td>..<h3>Step
2430: 23 34 3a 20 66 69 6e 61 6c 20 74 6f 75 63 68 3a #4: final touch:
2440: 20 72 65 66 6c 65 63 74 69 6e 67 20 53 69 63 69 reflecting Sici
2450: 6c 79 3c 2f 68 33 3e 0d 0a 41 20 72 65 66 6c 65 ly</h3>..A refle
2460: 63 74 65 64 20 53 69 63 69 6c 79 20 70 72 65 73 cted Sicily pres
2470: 65 6e 74 73 20 6d 61 6e 79 20 69 6e 74 65 72 65 ents many intere
2480: 73 74 69 6e 67 20 61 64 76 61 6e 74 61 67 65 73 sting advantages
2490: 3a 20 77 65 27 6c 6c 20 65 78 61 6d 69 6e 65 20 : we'll examine
24a0: 61 6c 6c 20 74 68 65 6d 20 69 6e 20 66 75 6c 6c all them in full
24b0: 20 64 65 74 61 69 6c 20 69 6e 20 6f 75 72 20 73 detail in our s
24c0: 74 75 64 79 20 63 6f 6e 63 6c 75 73 69 6f 6e 73 tudy conclusions
24d0: 2e 3c 62 72 3e 0d 0a 53 6f 20 77 65 27 6c 6c 20 .<br>..So we'll
24e0: 6e 6f 77 20 61 70 70 6c 79 20 61 20 66 69 6e 61 now apply a fina
24f0: 6c 20 3c 61 20 68 72 65 66 3d 68 74 74 70 3a 2f l <a href=http:/
2500: 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 /en.wikipedia.or
2510: 67 2f 77 69 6b 69 2f 52 65 66 6c 65 63 74 69 6f g/wiki/Reflectio
2520: 6e 5f 25 32 38 6d 61 74 68 65 6d 61 74 69 63 73 n_%28mathematics
2530: 25 32 39 22 3e 72 65 66 6c 65 63 74 69 6f 6e 3c %29">reflection<
2540: 2f 61 3e 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 /a> transformati
2550: 6f 6e 3b 20 74 68 69 73 20 73 69 6d 70 6c 79 20 on; this simply
2560: 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 61 corresponds to a
2570: 20 3c 62 3e 31 38 30 20 64 65 67 72 65 65 73 3c <b>180 degrees<
2580: 2f 62 3e 20 72 6f 74 61 74 69 6f 6e 20 61 72 6f /b> rotation aro
2590: 75 6e 64 20 74 68 65 20 3c 62 3e 59 20 61 78 69 und the <b>Y axi
25a0: 73 3c 2f 62 3e 2e 3c 62 72 3e 0d 0a 41 6e 64 20 s</b>.<br>..And
25b0: 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 73 the following is
25c0: 20 74 68 65 20 66 69 6e 61 6c 20 53 51 4c 20 73 the final SQL s
25d0: 74 61 74 65 6d 65 6e 74 20 61 70 70 6c 79 69 6e tatement applyin
25e0: 67 20 61 6c 6c 20 74 68 65 20 61 62 6f 76 65 20 g all the above
25f0: 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 20 transformations
2600: 69 6e 20 61 20 73 69 6e 67 6c 65 20 73 68 6f 74 in a single shot
2610: 3a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 43 52 45 :..<verbatim>CRE
2620: 41 54 45 20 54 41 42 4c 45 20 73 69 63 69 6c 69 ATE TABLE sicili
2630: 61 5f 32 20 41 53 0d 0a 43 52 45 41 54 45 20 54 a_2 AS..CREATE T
2640: 41 42 4c 45 20 73 69 63 69 6c 69 61 5f 34 20 41 ABLE sicilia_4 A
2650: 53 0d 0a 53 45 4c 45 43 54 20 63 6f 64 5f 72 65 S..SELECT cod_re
2660: 67 2c 20 0d 0a 20 20 20 41 54 4d 5f 54 72 61 6e g, .. ATM_Tran
2670: 73 66 6f 72 6d 28 67 65 6f 6d 65 74 72 79 2c 0d sform(geometry,.
2680: 0a 20 20 20 20 20 20 41 54 4d 5f 54 72 61 6e 73 . ATM_Trans
2690: 6c 61 74 65 28 2d 31 35 30 30 30 30 2c 20 31 35 late(-150000, 15
26a0: 30 30 30 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 0000,..
26b0: 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 63 78 ATM_Translate(cx
26c0: 2c 20 63 79 2c 0d 0a 20 20 20 20 20 20 20 20 20 , cy,..
26d0: 20 20 20 41 54 4d 5f 59 52 6f 6c 6c 28 31 38 30 ATM_YRoll(180
26e0: 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ,..
26f0: 20 20 41 54 4d 5f 53 63 61 6c 65 28 30 2e 39 2c ATM_Scale(0.9,
2700: 20 31 2e 33 2c 0d 0a 20 20 20 20 20 20 20 20 20 1.3,..
2710: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 52 6f 74 ATM_Rot
2720: 61 74 65 28 32 35 2c 0d 0a 20 20 20 20 20 20 20 ate(25,..
2730: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 54 AT
2740: 4d 5f 43 72 65 61 74 65 54 72 61 6e 73 6c 61 74 M_CreateTranslat
2750: 65 28 2d 63 78 2c 20 2d 63 79 29 29 29 29 29 29 e(-cx, -cy))))))
2760: 29 20 41 53 20 67 65 6f 6d 0d 0a 46 52 4f 4d 20 ) AS geom..FROM
2770: 28 53 45 4c 45 43 54 20 63 6f 64 5f 72 65 67 2c (SELECT cod_reg,
2780: 20 53 54 5f 58 28 63 65 6e 74 72 6f 69 64 29 20 ST_X(centroid)
2790: 41 53 20 63 78 2c 20 53 54 5f 59 28 63 65 6e 74 AS cx, ST_Y(cent
27a0: 72 6f 69 64 29 20 41 53 20 63 79 2c 20 67 65 6f roid) AS cy, geo
27b0: 6d 65 74 72 79 0d 0a 20 20 20 20 20 20 46 52 4f metry.. FRO
27c0: 4d 20 28 53 45 4c 45 43 54 20 63 6f 64 5f 72 65 M (SELECT cod_re
27d0: 67 2c 20 53 54 5f 43 65 6e 74 72 6f 69 64 28 67 g, ST_Centroid(g
27e0: 65 6f 6d 65 74 72 79 29 20 41 53 20 63 65 6e 74 eometry) AS cent
27f0: 72 6f 69 64 2c 20 67 65 6f 6d 65 74 72 79 20 0d roid, geometry .
2800: 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 52 4f . FRO
2810: 4d 20 73 69 63 69 6c 69 61 5f 30 29 20 41 53 20 M sicilia_0) AS
2820: 67 31 0d 0a 29 20 41 53 20 67 32 3b 0d 0a 53 45 g1..) AS g2;..SE
2830: 4c 45 43 54 20 52 65 63 6f 76 65 72 47 65 6f 6d LECT RecoverGeom
2840: 65 74 72 79 43 6f 6c 75 6d 6e 28 27 73 69 63 69 etryColumn('sici
2850: 6c 69 61 5f 34 27 2c 20 27 67 65 6f 6d 27 2c 20 lia_4', 'geom',
2860: 33 32 36 33 32 2c 20 27 4d 55 4c 54 49 50 4f 4c 32632, 'MULTIPOL
2870: 59 47 4f 4e 27 2c 20 27 58 59 27 29 3b 0d 0a 3c YGON', 'XY');..<
2880: 2f 76 65 72 62 61 74 69 6d 3e 20 0d 0a 3c 62 3e /verbatim> ..<b>
2890: 52 65 6d 61 72 6b 73 3c 2f 62 3e 3a 0d 0a 3c 75 Remarks</b>:..<u
28a0: 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 72 65 20 61 72 l>..<li>there ar
28b0: 65 20 73 65 76 65 72 61 6c 20 70 6f 73 73 69 62 e several possib
28c0: 6c 65 20 72 6f 74 61 74 69 6f 6e 73 20 73 75 70 le rotations sup
28d0: 70 6f 72 74 65 64 20 62 79 20 41 66 66 69 6e 65 ported by Affine
28e0: 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 3a Transformation:
28f0: 0d 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 41 ..<ol>..<li><b>A
2900: 54 4d 5f 52 6f 74 61 74 65 28 29 3c 2f 62 3e 20 TM_Rotate()</b>
2910: 61 6c 77 61 79 73 20 69 6e 74 65 6e 64 73 20 61 always intends a
2920: 20 3c 62 3e 32 44 3c 2f 62 3e 20 72 6f 74 61 74 <b>2D</b> rotat
2930: 69 6f 6e 2c 20 69 2e 65 2e 20 61 20 72 6f 74 61 ion, i.e. a rota
2940: 74 69 6f 6e 20 63 65 6e 74 65 72 65 64 20 61 72 tion centered ar
2950: 6f 75 6e 64 20 74 68 65 20 3c 62 3e 5a 20 61 78 ound the <b>Z ax
2960: 69 73 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 is</b></li>..<li
2970: 3e 49 6e 20 74 68 65 20 6d 6f 72 65 20 67 65 6e >In the more gen
2980: 65 72 61 6c 20 3c 62 3e 33 44 3c 2f 62 3e 20 63 eral <b>3D</b> c
2990: 61 73 65 20 74 68 65 72 65 20 61 72 65 20 74 68 ase there are th
29a0: 72 65 65 20 70 6f 73 73 69 62 6c 65 20 72 6f 74 ree possible rot
29b0: 61 74 69 6f 6e 73 2c 20 6f 6e 65 20 66 6f 72 20 ations, one for
29c0: 65 61 63 68 20 61 78 69 73 2e 3c 2f 6c 69 3e 0d each axis.</li>.
29d0: 0a 3c 6c 69 3e 74 68 65 20 63 6f 72 72 65 73 70 .<li>the corresp
29e0: 6f 6e 64 69 6e 67 20 53 51 4c 20 66 75 6e 63 74 onding SQL funct
29f0: 69 6f 6e 73 20 61 72 65 3a 20 3c 62 3e 41 54 4d ions are: <b>ATM
2a00: 5f 58 52 6f 6c 6c 28 61 6e 67 6c 65 29 3c 2f 62 _XRoll(angle)</b
2a10: 3e 2c 20 3c 62 3e 41 54 4d 5f 59 52 6f 6c 6c 28 >, <b>ATM_YRoll(
2a20: 61 6e 67 6c 65 29 3c 2f 62 3e 20 61 6e 64 20 3c angle)</b> and <
2a30: 62 3e 41 54 4d 5f 5a 52 6f 6c 6c 28 61 6e 67 6c b>ATM_ZRoll(angl
2a40: 65 29 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 e)</b></li>..<li
2a50: 3e 3c 69 3e 3c 75 3e 4e 6f 74 65 3c 2f 75 3e 3a ><i><u>Note</u>:
2a60: 20 41 54 4d 5f 5a 52 6f 6c 6c 28 29 20 61 6e 64 ATM_ZRoll() and
2a70: 20 41 54 4d 5f 52 6f 74 61 74 65 28 29 20 73 69 ATM_Rotate() si
2a80: 6d 70 6c 79 20 61 72 65 20 74 77 6f 20 64 69 66 mply are two dif
2a90: 66 65 72 65 6e 74 20 61 6c 69 61 73 2d 6e 61 6d ferent alias-nam
2aa0: 65 73 20 66 6f 72 20 74 68 65 20 73 61 6d 65 20 es for the same
2ab0: 69 64 65 6e 74 69 63 61 6c 20 53 51 4c 20 66 75 identical SQL fu
2ac0: 6e 63 74 69 6f 6e 3c 2f 69 3e 2e 3c 2f 6c 69 3e nction</i>.</li>
2ad0: 0d 0a 3c 2f 6f 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f ..</ol></li>..</
2ae0: 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 0d 0a ul>..</td><td>..
2af0: 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a <img src="https:
2b00: 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 //www.gaia-gis.i
2b10: 74 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 66 69 t/gaia-sins/affi
2b20: 6e 65 2d 70 69 63 73 2f 73 69 63 69 6c 79 5f 34 ne-pics/sicily_4
2b30: 2e 70 6e 67 22 20 61 6c 74 3d 22 77 66 73 2d 31 .png" alt="wfs-1
2b40: 22 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d 0a 3c " border="1">..<
2b50: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
2b60: 74 64 3e 0d 0a 3c 68 33 3e 46 69 6e 61 6c 20 63 td>..<h3>Final c
2b70: 6f 6e 73 69 64 65 72 61 74 69 6f 6e 73 3c 2f 68 onsiderations</h
2b80: 33 3e 0d 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3>..<ol>..<li><b
2b90: 3e 41 67 72 69 63 75 6c 74 75 72 65 3c 2f 62 3e >Agriculture</b>
2ba0: 3a 20 61 66 74 65 72 20 69 74 73 20 72 65 6c 6f : after its relo
2bb0: 63 61 74 69 6f 6e 20 53 69 63 69 6c 79 20 77 69 cation Sicily wi
2bc0: 6c 6c 20 67 61 69 6e 20 6d 75 63 68 20 6d 6f 72 ll gain much mor
2bd0: 65 20 61 67 72 69 63 75 6c 74 75 72 61 6c 20 6c e agricultural l
2be0: 61 6e 64 20 61 6e 64 20 77 69 6c 6c 20 65 6e 6a and and will enj
2bf0: 6f 79 20 61 20 6d 6f 72 65 20 66 61 76 6f 75 72 oy a more favour
2c00: 61 62 6c 65 20 63 6c 69 6d 61 74 65 3a 20 73 74 able climate: st
2c10: 69 6c 6c 20 73 75 6e 6e 79 20 61 6e 64 20 77 61 ill sunny and wa
2c20: 72 6d 20 62 75 74 20 6d 75 63 68 20 6c 65 73 73 rm but much less
2c30: 20 61 72 69 64 2e 3c 62 72 3e 0d 0a 54 68 69 73 arid.<br>..This
2c40: 20 77 69 6c 6c 20 63 65 72 74 61 69 6e 6c 79 20 will certainly
2c50: 73 74 61 72 74 20 61 20 6e 6f 74 69 63 65 61 62 start a noticeab
2c60: 6c 65 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 6f le development o
2c70: 66 20 6d 61 6e 79 20 65 63 6f 6e 6f 6d 69 63 20 f many economic
2c80: 61 63 74 69 76 69 74 69 65 73 2c 20 62 6f 74 68 activities, both
2c90: 20 64 69 72 65 63 74 20 61 6e 64 20 69 6e 64 69 direct and indi
2ca0: 72 65 63 74 6c 79 20 64 65 72 69 76 65 64 2e 3c rectly derived.<
2cb0: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 54 72 61 /li>..<li><b>Tra
2cc0: 6e 73 70 6f 72 74 61 74 69 6f 6e 20 73 79 73 74 nsportation syst
2cd0: 65 6d 73 3c 2f 62 3e 3a 20 74 68 65 20 73 75 67 ems</b>: the sug
2ce0: 67 65 73 74 65 64 20 6e 65 77 20 6c 61 79 6f 75 gested new layou
2cf0: 74 20 66 6f 72 20 74 68 65 20 4c 6f 77 65 72 20 t for the Lower
2d00: 54 79 72 72 68 65 6e 69 61 6e 20 53 65 61 20 73 Tyrrhenian Sea s
2d10: 74 72 6f 6e 67 6c 79 20 66 61 63 69 6c 69 74 61 trongly facilita
2d20: 74 65 73 20 74 68 65 20 64 65 76 65 6c 6f 70 6d tes the developm
2d30: 65 6e 74 20 6f 66 20 6d 61 72 69 74 69 6d 65 20 ent of maritime
2d40: 74 72 61 6e 73 70 6f 72 74 73 2e 20 53 69 63 69 transports. Sici
2d50: 6c 79 20 63 6f 75 6c 64 20 6e 65 77 20 62 65 63 ly could new bec
2d60: 6f 6d 65 20 74 68 65 20 63 65 6e 74 72 61 6c 20 ome the central
2d70: 68 75 62 20 6f 66 20 61 20 68 69 67 68 6c 79 20 hub of a highly
2d80: 65 66 66 69 63 69 65 6e 74 20 6e 65 74 77 6f 72 efficient networ
2d90: 6b 20 6f 66 20 68 69 67 68 2d 73 70 65 65 64 20 k of high-speed
2da0: 61 6e 64 20 68 69 67 68 2d 66 72 65 71 75 65 6e and high-frequen
2db0: 63 79 20 66 65 72 72 79 20 63 6f 6e 6e 65 63 74 cy ferry connect
2dc0: 69 6f 6e 73 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 ions:..<ul>..<li
2dd0: 3e 50 61 6c 65 72 6d 6f 20 77 69 6c 6c 20 6e 6f >Palermo will no
2de0: 77 20 64 69 72 65 63 74 6c 79 20 66 61 63 65 20 w directly face
2df0: 4e 61 70 6c 65 73 3b 20 43 69 76 69 74 61 76 65 Naples; Civitave
2e00: 63 63 68 69 61 20 28 52 6f 6d 65 29 20 73 65 65 cchia (Rome) see
2e10: 6d 73 20 74 6f 20 62 65 20 61 20 73 65 63 6f 6e ms to be a secon
2e20: 64 20 6f 62 76 69 6f 75 73 20 74 65 72 6d 69 6e d obvious termin
2e30: 61 6c 20 66 6f 72 20 64 69 72 65 63 74 20 63 6f al for direct co
2e40: 6e 6e 65 63 74 69 6f 6e 73 20 6c 65 61 64 69 6e nnections leadin
2e50: 67 20 74 6f 20 43 65 6e 74 72 61 6c 20 49 74 61 g to Central Ita
2e60: 6c 79 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4d 65 ly.</li>..<li>Me
2e70: 73 73 69 6e 61 20 77 69 6c 6c 20 61 63 71 75 69 ssina will acqui
2e80: 72 65 20 61 20 64 65 63 69 73 69 76 65 20 73 74 re a decisive st
2e90: 72 61 74 65 67 69 63 20 72 6f 6c 65 2c 20 61 6e rategic role, an
2ea0: 64 20 77 69 6c 6c 20 62 65 63 6f 6d 65 20 74 68 d will become th
2eb0: 65 20 74 65 72 6d 69 6e 61 6c 20 66 6f 72 20 66 e terminal for f
2ec0: 65 72 72 79 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 erry connections
2ed0: 20 6c 65 61 64 69 6e 67 20 74 6f 20 43 69 76 69 leading to Civi
2ee0: 74 61 76 65 63 63 68 69 61 2c 20 4c 65 67 68 6f tavecchia, Legho
2ef0: 72 6e 20 61 6e 64 20 47 65 6e 6f 61 2e 3c 2f 6c rn and Genoa.</l
2f00: 69 3e 0d 0a 3c 6c 69 3e 41 20 6c 65 73 73 20 72 i>..<li>A less r
2f10: 65 6c 65 76 61 6e 74 20 28 62 75 74 20 61 6e 79 elevant (but any
2f20: 77 61 79 20 69 6e 74 65 72 65 73 74 69 6e 67 29 way interesting)
2f30: 20 66 65 72 72 79 20 6c 69 6e 6b 20 77 69 6c 6c ferry link will
2f40: 20 6a 6f 69 6e 20 54 72 61 70 61 6e 69 20 61 6e join Trapani an
2f50: 64 20 52 65 67 67 69 6f 20 43 61 6c 61 62 72 69 d Reggio Calabri
2f60: 61 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 53 61 72 a.</li>..<li>Sar
2f70: 64 69 6e 69 61 20 77 69 6c 6c 20 73 74 72 6f 6e dinia will stron
2f80: 67 6c 79 20 62 65 6e 65 66 69 74 20 66 72 6f 6d gly benefit from
2f90: 20 74 68 65 20 6e 65 77 20 6c 61 79 6f 75 74 3b the new layout;
2fa0: 20 43 61 67 6c 69 61 72 69 20 77 69 6c 6c 20 62 Cagliari will b
2fb0: 65 20 64 69 72 65 63 74 6c 79 20 63 6f 6e 6e 65 e directly conne
2fc0: 63 74 65 64 20 74 6f 20 53 79 72 61 63 75 73 65 cted to Syracuse
2fd0: 20 28 6f 72 20 6d 61 79 20 62 65 20 41 75 67 75 (or may be Augu
2fe0: 73 74 61 29 2c 20 61 6e 64 20 4f 6c 62 69 61 20 sta), and Olbia
2ff0: 74 6f 20 4d 65 73 73 69 6e 61 2e 3c 62 72 3e 54 to Messina.<br>T
3000: 68 69 73 20 6d 65 61 6e 73 20 64 65 66 69 6e 69 his means defini
3010: 74 65 6c 79 20 62 72 65 61 6b 69 6e 67 20 74 68 tely breaking th
3020: 65 20 73 65 63 75 6c 61 72 20 69 6e 73 75 6c 61 e secular insula
3030: 74 69 6f 6e 20 6f 66 20 53 61 72 64 69 6e 69 61 tion of Sardinia
3040: 2c 20 74 68 61 74 20 77 69 6c 6c 20 6e 6f 77 20 , that will now
3050: 73 74 61 72 74 20 65 6e 6a 6f 79 69 6e 67 20 61 start enjoying a
3060: 20 73 74 72 6f 6e 67 65 72 20 69 6e 74 65 67 72 stronger integr
3070: 61 74 69 6f 6e 20 77 69 74 68 20 61 6c 6c 20 6f ation with all o
3080: 74 68 65 72 73 20 72 65 67 69 6f 6e 73 20 6f 66 thers regions of
3090: 20 53 6f 75 74 68 65 72 6e 20 49 74 61 6c 79 2e Southern Italy.
30a0: 3c 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e 4c 61 73 74 </li> ..<li>Last
30b0: 20 62 75 74 20 6e 6f 74 20 6c 65 61 73 74 3a 20 but not least:
30c0: 61 74 20 61 20 6d 6f 72 65 20 73 74 72 61 74 65 at a more strate
30d0: 67 69 63 20 6c 65 76 65 6c 20 69 74 27 73 20 61 gic level it's a
30e0: 62 73 6f 6c 75 74 65 6c 79 20 6f 62 76 69 6f 75 bsolutely obviou
30f0: 73 20 74 68 61 74 20 6e 6f 77 20 73 75 70 65 72 s that now super
3100: 74 61 6e 6b 65 72 73 20 61 6e 64 20 62 69 67 20 tankers and big
3110: 63 6f 6e 74 61 69 6e 65 72 20 73 68 69 70 73 20 container ships
3120: 63 61 6e 20 66 72 65 65 6c 79 20 63 69 72 63 75 can freely circu
3130: 6d 6e 61 76 69 67 61 74 65 20 53 69 63 69 6c 79 mnavigate Sicily
3140: 20 69 6e 20 61 6e 79 20 64 69 72 65 63 74 69 6f in any directio
3150: 6e 20 75 6e 64 65 72 20 75 6e 63 6f 6d 70 72 6f n under uncompro
3160: 6d 69 73 65 64 20 73 61 66 65 74 79 20 63 6f 6e mised safety con
3170: 64 69 74 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 41 6c ditions.<br>..Al
3180: 6c 20 54 79 72 72 68 65 6e 69 61 6e 20 68 61 72 l Tyrrhenian har
3190: 62 6f 72 73 20 77 69 6c 6c 20 6e 6f 77 20 62 65 bors will now be
31a0: 20 64 69 72 65 63 74 6c 79 20 63 6f 6e 6e 65 74 directly connet
31b0: 65 64 20 62 6f 74 68 20 74 6f 20 45 61 73 74 65 ed both to Easte
31c0: 72 6e 20 61 6e 64 20 57 65 73 74 65 72 6e 20 4d rn and Western M
31d0: 65 64 69 74 65 72 72 61 6e 65 61 6e 2c 20 61 6e editerranean, an
31e0: 64 20 74 68 69 73 20 77 69 6c 6c 20 73 75 72 65 d this will sure
31f0: 6c 79 20 69 6e 64 75 63 65 20 61 20 67 72 6f 77 ly induce a grow
3200: 74 68 20 69 6e 20 74 68 65 20 76 6f 6c 75 6d 65 th in the volume
3210: 73 20 6f 66 20 69 6e 74 65 72 6e 61 74 69 6f 6e s of internation
3220: 61 6c 20 74 72 61 66 66 69 63 73 20 74 68 65 79 al traffics they
3230: 20 63 6f 75 6c 64 20 70 6f 74 65 6e 74 69 61 6c could potential
3240: 6c 79 20 61 74 74 72 61 63 74 2e 3c 2f 6c 69 3e ly attract.</li>
3250: 20 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 20 0d 0a ..</ul></li> ..
3260: 3c 6c 69 3e 3c 62 3e 48 65 61 76 79 20 69 6e 64 <li><b>Heavy ind
3270: 75 73 74 72 79 3c 2f 62 3e 3a 20 74 68 65 20 6e ustry</b>: the n
3280: 65 77 20 74 72 61 6e 73 70 6f 72 74 61 74 69 6f ew transportatio
3290: 6e 20 73 79 73 74 65 6d 20 73 74 72 6f 6e 67 6c n system strongl
32a0: 79 20 63 65 6e 74 65 72 65 64 20 61 72 6f 75 6e y centered aroun
32b0: 64 20 6d 61 72 69 74 69 6d 65 20 63 6f 6d 6d 75 d maritime commu
32c0: 6e 69 63 61 74 69 6f 6e 73 20 77 69 6c 6c 20 73 nications will s
32d0: 75 72 65 6c 79 20 69 6e 64 75 63 65 20 61 6e 20 urely induce an
32e0: 61 63 74 69 76 65 20 72 65 62 69 72 74 68 20 6f active rebirth o
32f0: 66 20 73 68 69 70 79 61 72 64 73 2c 20 61 20 66 f shipyards, a f
3300: 6c 75 6f 72 69 73 68 69 6e 67 20 74 72 61 64 69 luorishing tradi
3310: 74 69 6f 6e 61 6c 20 65 78 63 65 6c 6c 65 6e 63 tional excellenc
3320: 65 20 6f 66 20 6d 61 6e 79 20 73 6f 75 74 68 65 e of many southe
3330: 72 6e 20 72 65 67 69 6f 6e 73 20 69 6e 20 70 61 rn regions in pa
3340: 73 74 20 74 69 6d 65 73 20 62 75 74 20 6e 6f 77 st times but now
3350: 61 64 61 79 73 20 61 20 70 65 72 69 73 68 69 6e adays a perishin
3360: 67 20 61 6e 64 20 64 65 63 6c 69 6e 69 6e 67 20 g and declining
3370: 69 6e 64 75 73 74 72 69 61 6c 20 62 72 61 6e 63 industrial branc
3380: 68 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e h.</li>..<li><b>
3390: 54 6f 75 72 69 73 6d 3c 2f 62 3e 3a 20 74 68 65 Tourism</b>: the
33a0: 20 73 75 67 67 65 73 74 65 64 20 6e 65 77 20 6c suggested new l
33b0: 61 79 6f 75 74 20 77 69 6c 6c 20 63 65 72 74 61 ayout will certa
33c0: 69 6e 6c 79 20 70 72 6f 6d 6f 74 65 20 61 20 73 inly promote a s
33d0: 74 72 6f 6e 67 20 64 65 76 65 6c 6f 70 6d 65 6e trong developmen
33e0: 74 20 6f 66 20 69 6e 74 65 72 6e 61 74 69 6f 6e t of internation
33f0: 61 6c 20 74 6f 75 72 69 73 6d 2e 3c 62 72 3e 0d al tourism.<br>.
3400: 0a 49 74 27 73 20 77 6f 72 74 68 20 6e 6f 74 69 .It's worth noti
3410: 6e 67 20 74 68 61 74 20 74 68 65 20 6e 65 77 20 ng that the new
3420: 6c 61 79 6f 75 74 20 77 69 6c 6c 20 67 69 76 65 layout will give
3430: 20 62 69 72 74 68 20 74 6f 20 61 20 77 6f 6e 64 birth to a wond
3440: 65 72 66 75 6c 20 69 73 6c 61 6e 64 20 67 72 6f erful island gro
3450: 75 70 20 65 78 74 65 6e 64 69 6e 67 20 62 65 74 up extending bet
3460: 77 65 65 6e 20 53 69 63 69 6c 79 20 74 6f 20 43 ween Sicily to C
3470: 61 6d 70 61 6e 69 61 3b 20 73 65 76 65 72 61 6c ampania; several
3480: 20 6f 66 20 74 68 65 73 65 20 69 73 6c 61 6e 64 of these island
3490: 73 20 61 63 74 75 61 6c 6c 79 20 61 72 65 20 61 s actually are a
34a0: 63 74 69 76 65 20 76 6f 6c 63 61 6e 6f 65 73 2c ctive volcanoes,
34b0: 20 61 6e 64 20 74 68 69 73 20 69 73 6c 61 6e 64 and this island
34c0: 20 63 68 61 69 6e 20 77 69 6c 6c 20 69 64 65 61 chain will idea
34d0: 6c 6c 79 20 6a 6f 69 6e 20 4d 6f 75 6e 74 20 45 lly join Mount E
34e0: 74 6e 61 20 61 6e 64 20 4d 6f 75 6e 74 20 56 65 tna and Mount Ve
34f0: 73 75 76 69 75 73 2e 3c 62 72 3e 0d 0a 54 68 69 suvius.<br>..Thi
3500: 73 20 61 72 65 61 20 63 6f 75 6c 64 20 62 65 20 s area could be
3510: 63 6f 6e 73 69 64 65 72 65 64 20 74 68 65 20 6d considered the m
3520: 6f 73 74 20 69 6d 70 72 65 73 73 69 76 65 20 76 ost impressive v
3530: 6f 6c 63 61 6e 69 63 20 66 69 65 6c 64 20 6f 66 olcanic field of
3540: 20 45 75 72 6f 70 65 20 61 6e 64 20 77 69 6c 6c Europe and will
3550: 20 63 65 72 74 61 69 6e 6c 79 20 62 65 63 6f 6d certainly becom
3560: 65 20 61 20 73 74 72 6f 6e 67 20 74 6f 75 72 69 e a strong touri
3570: 73 74 69 63 20 61 74 74 72 61 63 74 69 6f 6e 2e stic attraction.
3580: 0d 0a 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e ..</li>..<li><b>
3590: 49 6e 74 65 72 6e 61 6c 20 63 6f 6d 6d 65 72 63 Internal commerc
35a0: 65 3c 2f 62 3e 3a 20 77 65 20 63 61 6e 20 65 61 e</b>: we can ea
35b0: 73 69 6c 79 20 66 6f 72 65 63 61 73 74 20 61 20 sily forecast a
35c0: 73 74 72 6f 6e 67 20 67 72 6f 77 74 68 20 69 6e strong growth in
35d0: 20 76 6f 6c 75 6d 65 20 6f 66 20 69 6e 74 65 72 volume of inter
35e0: 6e 61 6c 20 65 78 63 68 61 6e 67 65 73 20 74 68 nal exchanges th
35f0: 61 6e 6b 20 74 6f 20 74 68 65 20 62 65 74 74 65 ank to the bette
3600: 72 20 63 6f 6e 6e 65 63 74 69 76 69 74 79 20 62 r connectivity b
3610: 61 73 65 64 20 6f 6e 20 6d 61 72 69 74 69 6d 65 ased on maritime
3620: 20 74 72 61 6e 73 70 6f 72 74 73 2e 2e 3c 62 72 transports..<br
3630: 3e 20 0d 0a 4a 75 73 74 20 61 20 73 69 6e 67 6c > ..Just a singl
3640: 65 20 65 78 61 6d 70 6c 65 3a 20 53 61 72 64 69 e example: Sardi
3650: 6e 69 61 20 73 68 6f 75 6c 64 20 6e 6f 77 20 62 nia should now b
3660: 65 20 61 62 6c 65 20 74 6f 20 65 78 70 6f 72 74 e able to export
3670: 20 69 74 73 20 66 69 6e 65 73 74 20 73 68 65 65 its finest shee
3680: 70 2d 63 68 65 65 73 65 20 6f 6e 20 74 68 65 20 p-cheese on the
3690: 43 61 6c 61 62 72 69 61 6e 20 6d 61 72 6b 65 74 Calabrian market
36a0: 73 20 77 68 69 6c 73 74 20 43 61 6c 61 62 72 69 s whilst Calabri
36b0: 61 20 63 6f 75 6c 64 20 66 72 65 65 6c 79 20 65 a could freely e
36c0: 78 70 6f 72 74 20 69 74 73 20 72 65 6e 6f 77 6e xport its renown
36d0: 20 72 65 64 20 68 6f 74 20 63 68 69 6c 6c 79 20 red hot chilly
36e0: 70 65 70 70 65 72 73 20 74 6f 20 53 61 72 64 69 peppers to Sardi
36f0: 6e 69 61 2c 20 61 6e 64 20 62 6f 74 68 20 72 65 nia, and both re
3700: 67 69 6f 6e 73 20 77 69 6c 6c 20 77 69 64 65 6c gions will widel
3710: 79 20 62 65 66 69 74 20 66 72 6f 6d 20 69 6e 63 y befit from inc
3720: 72 65 61 73 65 64 20 65 78 63 68 61 6e 67 65 20 reased exchange
3730: 76 6f 6c 75 6d 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c volumes.</li>..<
3740: 6c 69 3e 3c 62 3e 50 72 61 63 74 69 63 61 6c 20 li><b>Practical
3750: 72 65 61 6c 69 7a 61 74 69 6f 6e 3c 2f 62 3e 3a realization</b>:
3760: 20 74 68 65 20 70 72 65 73 65 6e 74 20 73 74 75 the present stu
3770: 64 79 20 63 6c 65 61 72 6c 79 20 64 65 6d 6f 6e dy clearly demon
3780: 73 74 72 61 74 65 73 20 74 68 61 74 20 74 68 65 strates that the
3790: 72 65 20 61 72 65 20 6e 6f 20 4d 61 74 68 65 6d re are no Mathem
37a0: 61 74 69 63 73 2c 20 47 65 6f 6d 65 74 72 79 20 atics, Geometry
37b0: 6f 72 20 47 65 6f 67 72 61 70 68 79 20 61 64 76 or Geography adv
37c0: 65 72 73 65 20 66 61 63 74 6f 72 73 20 70 6f 74 erse factors pot
37d0: 65 6e 74 69 61 6c 6c 79 20 66 6f 72 62 69 64 64 entially forbidd
37e0: 69 6e 67 20 74 68 65 20 70 72 61 63 74 69 63 61 ing the practica
37f0: 6c 20 72 65 61 6c 69 7a 61 74 69 6f 6e 20 6f 66 l realization of
3800: 20 74 68 65 20 73 75 67 67 65 73 74 65 64 20 69 the suggested i
3810: 64 65 61 2e 3c 62 72 3e 0d 0a 55 6e 68 61 70 70 dea.<br>..Unhapp
3820: 69 6c 79 20 74 68 65 20 63 75 72 72 65 6e 74 20 ily the current
3830: 73 74 61 74 65 20 6f 66 20 74 68 65 20 61 72 74 state of the art
3840: 20 69 6e 20 47 65 6f 6c 6f 67 79 20 70 6f 73 65 in Geology pose
3850: 73 20 6d 61 6e 79 20 70 75 7a 7a 6c 69 6e 67 20 s many puzzling
3860: 71 75 65 73 74 69 6f 6e 73 20 6e 6f 74 20 79 65 questions not ye
3870: 74 20 66 75 6c 6c 79 20 72 65 73 6f 6c 76 65 64 t fully resolved
3880: 20 69 6e 20 61 20 63 6f 6d 70 6c 65 74 65 6c 79 in a completely
3890: 20 73 61 74 69 73 66 79 69 6e 67 20 77 61 79 2e satisfying way.
38a0: 3c 62 72 3e 0d 0a 41 6e 77 61 79 20 77 65 20 61 <br>..Anway we a
38b0: 72 65 20 68 6f 70 65 66 75 6c 6c 79 20 65 78 70 re hopefully exp
38c0: 65 63 74 69 6e 67 20 74 68 61 74 20 66 75 74 75 ecting that futu
38d0: 72 65 20 61 64 76 61 6e 63 65 6d 65 6e 74 73 20 re advancements
38e0: 69 6e 20 54 65 63 74 6f 6e 69 63 73 20 28 61 6e in Tectonics (an
38f0: 64 20 6d 6f 72 65 20 73 70 65 63 69 66 69 63 61 d more specifica
3900: 6c 6c 79 20 61 20 64 65 65 70 65 72 20 63 6f 6d lly a deeper com
3910: 70 72 65 68 65 6e 73 69 6f 6e 20 6f 66 20 74 68 prehension of th
3920: 65 20 6d 69 63 72 6f 2d 70 6c 61 71 75 65 73 20 e micro-plaques
3930: 6d 65 63 68 61 6e 69 63 73 29 20 77 69 6c 6c 20 mechanics) will
3940: 73 75 72 65 6c 79 20 61 6c 6c 6f 77 20 74 6f 20 surely allow to
3950: 6f 76 65 72 63 6f 6d 65 20 61 6e 79 20 72 65 6d overcome any rem
3960: 61 69 6e 69 6e 67 20 69 73 73 75 65 2e 0d 0a 3c aining issue...<
3970: 2f 6f 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 0d /ol>..</td><td>.
3980: 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 .<img src="https
3990: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
39a0: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 66 it/gaia-sins/aff
39b0: 69 6e 65 2d 70 69 63 73 2f 69 74 61 6c 79 2d 32 ine-pics/italy-2
39c0: 2e 30 2e 70 6e 67 22 20 61 6c 74 3d 22 77 66 73 .0.png" alt="wfs
39d0: 2d 31 22 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d -1" border="1">.
39e0: 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 .</td></tr>..</t
39f0: 61 62 6c 65 3e 3c 62 72 3e 3c 68 72 3e 0d 0a 3c able><br><hr>..<
3a00: 68 32 3e 42 6f 72 69 6e 67 20 4d 61 74 68 3a 20 h2>Boring Math:
3a10: 61 20 6d 6f 72 65 20 66 6f 72 6d 61 6c 20 70 72 a more formal pr
3a20: 65 73 65 6e 74 61 74 69 6f 6e 3c 2f 68 32 3e 0d esentation</h2>.
3a30: 0a 50 6c 61 79 74 69 6d 65 27 73 20 6f 76 65 72 .Playtime's over
3a40: 3a 20 77 65 27 6c 6c 20 6e 6f 77 20 73 74 61 72 : we'll now star
3a50: 74 20 61 20 6d 6f 73 74 20 73 65 72 69 6f 75 73 t a most serious
3a60: 20 65 78 6c 61 6e 61 74 69 6f 6e 2e 3c 62 72 3e exlanation.<br>
3a70: 3c 62 72 3e 0d 0a 41 6e 20 41 66 66 69 6e 65 20 <br>..An Affine
3a80: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 63 Transformation c
3a90: 61 6e 20 62 65 20 72 65 70 72 65 73 65 6e 74 65 an be represente
3aa0: 64 20 69 6e 20 74 68 65 20 66 6f 72 6d 20 6f 66 d in the form of
3ab0: 20 61 20 73 71 75 61 72 65 20 6d 61 74 72 69 78 a square matrix
3ac0: 3b 20 74 68 65 20 73 69 6d 70 6c 65 72 20 3c 62 ; the simpler <b
3ad0: 3e 32 44 3c 2f 62 3e 20 63 61 73 65 20 72 65 71 >2D</b> case req
3ae0: 75 69 72 65 73 20 61 20 3c 62 3e 33 20 78 20 33 uires a <b>3 x 3
3af0: 3c 2f 62 3e 20 6d 61 74 72 69 78 2c 20 61 6e 64 </b> matrix, and
3b00: 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 73 20 the followings
3b10: 61 72 65 20 74 68 65 20 70 6f 73 73 69 62 6c 65 are the possible
3b20: 20 61 72 72 61 6e 67 65 6d 65 6e 74 73 20 63 6f arrangements co
3b30: 72 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 65 rresponding to e
3b40: 61 63 68 20 65 6c 65 6d 65 6e 74 61 72 79 20 74 ach elementary t
3b50: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 3a 3c 62 ransformation:<b
3b60: 72 3e 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 3e 0d r><br>..<table>.
3b70: 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e .<tr><td rowspan
3b80: 3d 22 34 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 ="4" valign="mid
3b90: 64 6c 65 22 3e 47 65 6e 65 72 61 6c 20 6c 61 79 dle">General lay
3ba0: 6f 75 74 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c out</td>..<td>/<
3bb0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
3bc0: 65 6e 74 65 72 22 3e 3c 62 3e 61 3c 2f 62 3e 3c enter"><b>a</b><
3bd0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
3be0: 65 6e 74 65 72 22 3e 3c 62 3e 62 3c 2f 62 3e 3c enter"><b>b</b><
3bf0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
3c00: 65 6e 74 65 72 22 3e 3c 62 3e 78 6f 66 66 3c 2f enter"><b>xoff</
3c10: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 b></td><td>\</td
3c20: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
3c30: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
3c40: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 64 3c 2f 62 "center"><b>d</b
3c50: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
3c60: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 65 3c 2f 62 "center"><b>e</b
3c70: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
3c80: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 79 6f 66 66 "center"><b>yoff
3c90: 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f </b></td><td>|</
3ca0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
3cb0: 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>\</td><td alig
3cc0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
3cd0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3ce0: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
3cf0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f ign="center">1</
3d00: 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 td><td>/</td></t
3d10: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 r>..<tr><td cols
3d20: 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 pan="5"><hr></td
3d30: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 ></tr>..<tr><td
3d40: 72 6f 77 73 70 61 6e 3d 22 34 22 20 76 61 6c 69 rowspan="4" vali
3d50: 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 49 64 65 6e gn="middle">Iden
3d60: 74 69 74 79 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f tity</td>..<td>/
3d70: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
3d80: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
3d90: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
3da0: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
3db0: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
3dc0: 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>\</td></tr>.
3dd0: 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c .<tr><td>|</td><
3de0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
3df0: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
3e00: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 n="center">1</td
3e10: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3e20: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c er">0</td><td>|<
3e30: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
3e40: 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 td>\</td><td ali
3e50: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
3e60: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
3e70: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 ter">0</td><td a
3e80: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c lign="center">1<
3e90: 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f /td><td>/</td></
3ea0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c tr>..<tr><td col
3eb0: 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 span="5"><hr></t
3ec0: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
3ed0: 20 72 6f 77 73 70 61 6e 3d 22 34 22 20 76 61 6c rowspan="4" val
3ee0: 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 54 72 61 ign="middle">Tra
3ef0: 6e 73 6c 61 74 65 28 3c 62 3e 74 78 3c 2f 62 3e nslate(<b>tx</b>
3f00: 2c 20 3c 62 3e 74 79 3c 2f 62 3e 29 26 6e 62 73 , <b>ty</b>)&nbs
3f10: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 2f p; </
3f20: 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c td>..<td>/</td><
3f30: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
3f40: 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">1</td><td alig
3f50: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
3f60: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3f70: 65 72 22 3e 3c 62 3e 74 78 3c 2f 62 3e 3c 2f 74 er"><b>tx</b></t
3f80: 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 d><td>\</td></tr
3f90: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
3fa0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3fb0: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
3fc0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f ign="center">1</
3fd0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
3fe0: 6e 74 65 72 22 3e 3c 62 3e 74 79 3c 2f 62 3e 3c nter"><b>ty</b><
3ff0: 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f /td><td>|</td></
4000: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f tr>..<tr><td>\</
4010: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4020: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4030: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
4040: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
4050: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
4060: 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>/</td></tr>..<
4070: 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 tr><td colspan="
4080: 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 5"><hr></td></tr
4090: 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 >..<tr><td rowsp
40a0: 61 6e 3d 22 34 22 20 76 61 6c 69 67 6e 3d 22 6d an="4" valign="m
40b0: 69 64 64 6c 65 22 3e 53 63 61 6c 65 28 3c 62 3e iddle">Scale(<b>
40c0: 73 78 3c 2f 62 3e 2c 20 3c 62 3e 73 79 3c 2f 62 sx</b>, <b>sy</b
40d0: 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f >)</td>..<td>/</
40e0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
40f0: 6e 74 65 72 22 3e 3c 62 3e 73 78 3c 2f 62 3e 3c nter"><b>sx</b><
4100: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4110: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4120: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4130: 30 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 0</td><td>\</td>
4140: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c </tr>..<tr><td>|
4150: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
4160: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
4170: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4180: 3e 3c 62 3e 73 79 3c 2f 62 3e 3c 2f 74 64 3e 3c ><b>sy</b></td><
4190: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
41a0: 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 ">0</td><td>|</t
41b0: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
41c0: 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >\</td><td align
41d0: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
41e0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
41f0: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
4200: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 gn="center">1</t
4210: 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 d><td>/</td></tr
4220: 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 >..<tr><td colsp
4230: 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e an="5"><hr></td>
4240: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 </tr>..<tr><td r
4250: 6f 77 73 70 61 6e 3d 22 34 22 20 76 61 6c 69 67 owspan="4" valig
4260: 6e 3d 22 6d 69 64 64 6c 65 22 3e 52 6f 74 61 74 n="middle">Rotat
4270: 65 28 3c 62 3e 26 74 68 65 74 61 3b 3c 2f 62 3e e(<b>θ</b>
4280: 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 )</td>..<td>/</t
4290: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
42a0: 74 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 68 65 ter"><b>cos(&the
42b0: 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 ta;)</b></td><td
42c0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
42d0: 3c 62 3e 2d 73 69 6e 28 26 74 68 65 74 61 3b 29 <b>-sin(θ)
42e0: 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 </b></td><td ali
42f0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
4300: 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 d><td>\</td></tr
4310: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
4320: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4330: 65 72 22 3e 3c 62 3e 73 69 6e 28 26 74 68 65 74 er"><b>sin(&thet
4340: 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 a;)</b></td><td
4350: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
4360: 62 3e 63 6f 73 28 26 74 68 65 74 61 3b 29 3c 2f b>cos(θ)</
4370: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
4380: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
4390: 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>|</td></tr>.
43a0: 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c .<tr><td>\</td><
43b0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
43c0: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
43d0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
43e0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
43f0: 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c er">1</td><td>/<
4400: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
4410: 74 64 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c td></td></tr>..<
4420: 2f 74 61 62 6c 65 3e 3c 62 72 3e 0d 0a 41 20 3c /table><br>..A <
4430: 62 3e 33 44 3c 2f 62 3e 20 61 66 66 69 6e 65 20 b>3D</b> affine
4440: 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 72 transformation r
4450: 65 71 75 69 72 65 73 20 61 20 3c 62 3e 34 20 78 equires a <b>4 x
4460: 20 34 3c 2f 62 3e 20 6d 61 74 72 69 78 2e 3c 62 4</b> matrix.<b
4470: 72 3e 0d 0a 41 73 20 79 6f 75 20 63 61 6e 20 65 r>..As you can e
4480: 61 73 69 6c 79 20 6e 6f 74 69 63 65 20 74 68 65 asily notice the
4490: 72 65 20 69 73 20 64 69 72 65 63 74 20 72 65 6c re is direct rel
44a0: 61 74 69 6f 6e 20 62 65 65 74 77 65 65 6e 20 61 ation beetween a
44b0: 20 33 44 20 6d 61 74 72 69 78 20 61 6e 64 20 61 3D matrix and a
44c0: 20 32 44 20 6d 61 74 72 69 78 3b 20 6e 6f 74 69 2D matrix; noti
44d0: 63 65 20 74 68 65 20 63 65 6c 6c 73 20 73 68 6f ce the cells sho
44e0: 77 69 6e 67 20 61 20 67 72 61 79 20 62 61 63 6b wing a gray back
44f0: 67 72 6f 75 64 2e 3c 62 72 3e 3c 62 72 3e 0d 0a groud.<br><br>..
4500: 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 64 <table>..<tr><td
4510: 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 76 61 6c rowspan="5" val
4520: 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 47 65 6e ign="middle">Gen
4530: 65 72 61 6c 20 6c 61 79 6f 75 74 26 6e 62 73 70 eral layout 
4540: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 2f 74 ; </t
4550: 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 d>..<td>/</td><t
4560: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4570: 3e 3c 62 3e 61 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 ><b>a</b></td><t
4580: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4590: 3e 3c 62 3e 62 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 ><b>b</b></td><t
45a0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
45b0: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 64 30 64 bgcolor="#d0d0d
45c0: 30 22 3e 3c 62 3e 63 3c 2f 62 3e 3c 2f 74 64 3e 0"><b>c</b></td>
45d0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
45e0: 72 22 3e 3c 62 3e 78 6f 66 66 3c 2f 62 3e 3c 2f r"><b>xoff</b></
45f0: 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 td><td>\</td></t
4600: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 r>..<tr><td>|</t
4610: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4620: 74 65 72 22 3e 3c 62 3e 64 3c 2f 62 3e 3c 2f 74 ter"><b>d</b></t
4630: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4640: 74 65 72 22 3e 3c 62 3e 65 3c 2f 62 3e 3c 2f 74 ter"><b>e</b></t
4650: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4660: 74 65 72 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ter" bgcolor="#d
4670: 30 64 30 64 30 22 3e 3c 62 3e 66 3c 2f 62 3e 3c 0d0d0"><b>f</b><
4680: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4690: 65 6e 74 65 72 22 3e 3c 62 3e 79 6f 66 66 3c 2f enter"><b>yoff</
46a0: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 b></td><td>|</td
46b0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
46c0: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
46d0: 22 63 65 6e 74 65 72 22 20 62 67 63 6f 6c 6f 72 "center" bgcolor
46e0: 3d 22 23 64 30 64 30 64 30 22 3e 3c 62 3e 67 3c ="#d0d0d0"><b>g<
46f0: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
4700: 6e 3d 22 63 65 6e 74 65 72 22 20 62 67 63 6f 6c n="center" bgcol
4710: 6f 72 3d 22 23 64 30 64 30 64 30 22 3e 3c 62 3e or="#d0d0d0"><b>
4720: 68 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c h</b></td><td al
4730: 69 67 6e 3d 22 63 65 6e 74 65 72 22 20 62 67 63 ign="center" bgc
4740: 6f 6c 6f 72 3d 22 23 64 30 64 30 64 30 22 3e 3c olor="#d0d0d0"><
4750: 62 3e 69 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 b>i</b></td><td
4760: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 20 62 align="center" b
4770: 67 63 6f 6c 6f 72 3d 22 23 64 30 64 30 64 30 22 gcolor="#d0d0d0"
4780: 3e 3c 62 3e 7a 6f 66 66 3c 2f 62 3e 3c 2f 74 64 ><b>zoff</b></td
4790: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>|</td></tr>
47a0: 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e ..<tr><td>\</td>
47b0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
47c0: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
47d0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
47e0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
47f0: 74 65 72 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ter" bgcolor="#d
4800: 30 64 30 64 30 22 3e 30 3c 2f 74 64 3e 3c 74 64 0d0d0">0</td><td
4810: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4820: 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 1</td><td>/</td>
4830: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 </tr>..<tr><td c
4840: 6f 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c olspan="5"><hr><
4850: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
4860: 74 64 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 76 td rowspan="5" v
4870: 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 49 align="middle">I
4880: 64 65 6e 74 69 74 79 3c 2f 74 64 3e 0d 0a 3c 74 dentity</td>..<t
4890: 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>/</td><td alig
48a0: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 n="center">1</td
48b0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
48c0: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
48d0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
48e0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
48f0: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e nter">0</td><td>
4900: 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 \</td></tr>..<tr
4910: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>|</td><td a
4920: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
4930: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4940: 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 enter">1</td><td
4950: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4960: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
4970: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
4980: 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>|</td></tr>..
4990: 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 <tr><td>\</td><t
49a0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
49b0: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
49c0: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
49d0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
49e0: 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">1</td><td ali
49f0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
4a00: 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 d><td>/</td></tr
4a10: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 >..<tr><td>\</td
4a20: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4a30: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
4a40: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
4a50: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4a60: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4a70: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
4a80: 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c </td><td>/</td><
4a90: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f /tr>..<tr><td co
4aa0: 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f lspan="5"><hr></
4ab0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
4ac0: 64 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 76 61 d rowspan="5" va
4ad0: 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 54 72 lign="middle">Tr
4ae0: 61 6e 73 6c 61 74 65 28 3c 62 3e 74 78 3c 2f 62 anslate(<b>tx</b
4af0: 3e 2c 20 3c 62 3e 74 79 3c 2f 62 3e 2c 20 3c 62 >, <b>ty</b>, <b
4b00: 3e 74 7a 3c 2f 62 3e 29 26 6e 62 73 70 3b 26 6e >tz</b>) &n
4b10: 62 73 70 3b 26 6e 62 73 70 3b 3c 2f 74 64 3e 0d bsp; </td>.
4b20: 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 .<td>/</td><td a
4b30: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c lign="center">1<
4b40: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4b50: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4b60: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4b70: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
4b80: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 74 78 3c 2f "center"><b>tx</
4b90: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 b></td><td>\</td
4ba0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
4bb0: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
4bc0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
4bd0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
4be0: 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">1</td><td alig
4bf0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
4c00: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4c10: 65 72 22 3e 3c 62 3e 74 79 3c 2f 62 3e 3c 2f 74 er"><b>ty</b></t
4c20: 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 d><td>|</td></tr
4c30: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
4c40: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4c50: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
4c60: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
4c70: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4c80: 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 nter">1</td><td
4c90: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
4ca0: 62 3e 74 7a 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 b>tz</b></td><td
4cb0: 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >|</td></tr>..<t
4cc0: 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 r><td>\</td><td
4cd0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
4ce0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
4cf0: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
4d00: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4d10: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
4d20: 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e ="center">1</td>
4d30: 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>/</td></tr>.
4d40: 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e .<tr><td colspan
4d50: 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f ="5"><hr></td></
4d60: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 tr>..<tr><td row
4d70: 73 70 61 6e 3d 22 35 22 20 76 61 6c 69 67 6e 3d span="5" valign=
4d80: 22 6d 69 64 64 6c 65 22 3e 53 63 61 6c 65 28 3c "middle">Scale(<
4d90: 62 3e 73 78 3c 2f 62 3e 2c 20 3c 62 3e 73 79 3c b>sx</b>, <b>sy<
4da0: 2f 62 3e 2c 20 3c 62 3e 73 7a 3c 2f 62 3e 29 3c /b>, <b>sz</b>)<
4db0: 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e /td>..<td>/</td>
4dc0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4dd0: 72 22 3e 3c 62 3e 73 78 3c 2f 62 3e 3c 2f 74 64 r"><b>sx</b></td
4de0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4df0: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
4e00: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
4e10: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4e20: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e nter">0</td><td>
4e30: 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 \</td></tr>..<tr
4e40: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>|</td><td a
4e50: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
4e60: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4e70: 65 6e 74 65 72 22 3e 3c 62 3e 73 79 3c 2f 62 3e enter"><b>sy</b>
4e80: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
4e90: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
4ea0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4eb0: 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 >0</td><td>|</td
4ec0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
4ed0: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
4ee0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
4ef0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
4f00: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
4f10: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 73 7a n="center"><b>sz
4f20: 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 </b></td><td ali
4f30: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
4f40: 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 d><td>|</td></tr
4f50: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 >..<tr><td>\</td
4f60: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4f70: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
4f80: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
4f90: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4fa0: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4fb0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
4fc0: 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c </td><td>/</td><
4fd0: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f /tr>..<tr><td co
4fe0: 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f lspan="5"><hr></
4ff0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
5000: 64 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 76 61 d rowspan="5" va
5010: 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 58 20 lign="middle">X
5020: 52 6f 6c 6c 28 3c 62 3e 26 74 68 65 74 61 3b 3c Roll(<b>θ<
5030: 2f 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f /b>)</td>..<td>/
5040: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5050: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
5060: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5070: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
5080: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
5090: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
50a0: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f r">0</td><td>\</
50b0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
50c0: 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>|</td><td alig
50d0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
50e0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
50f0: 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 68 65 74 er"><b>cos(&thet
5100: 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 a;)</b></td><td
5110: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
5120: 62 3e 2d 73 69 6e 28 26 74 68 65 74 61 3b 29 3c b>-sin(θ)<
5130: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
5140: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
5150: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>|</td></tr>
5160: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
5170: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5180: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
5190: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 73 gn="center"><b>s
51a0: 69 6e 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c in(θ)</b><
51b0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
51c0: 65 6e 74 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 enter"><b>cos(&t
51d0: 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c heta;)</b></td><
51e0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
51f0: 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 ">0</td><td>|</t
5200: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
5210: 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >\</td><td align
5220: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
5230: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5240: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
5250: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
5260: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5270: 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f ter">1</td><td>/
5280: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
5290: 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 35 22 3e <td colspan="5">
52a0: 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a <hr></td></tr>..
52b0: 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e 3d <tr><td rowspan=
52c0: 22 35 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 "5" valign="midd
52d0: 6c 65 22 3e 59 20 52 6f 6c 6c 28 3c 62 3e 26 74 le">Y Roll(<b>&t
52e0: 68 65 74 61 3b 3c 2f 62 3e 29 3c 2f 74 64 3e 0d heta;</b>)</td>.
52f0: 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 .<td>/</td><td a
5300: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 lign="center"><b
5310: 3e 63 6f 73 28 26 74 68 65 74 61 3b 29 3c 2f 62 >cos(θ)</b
5320: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
5330: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
5340: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5350: 22 3e 3c 62 3e 73 69 6e 28 26 74 68 65 74 61 3b "><b>sin(θ
5360: 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c )</b></td><td al
5370: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
5380: 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 td><td>\</td></t
5390: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 r>..<tr><td>|</t
53a0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
53b0: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 ter">0</td><td a
53c0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c lign="center">1<
53d0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
53e0: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
53f0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
5400: 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 0</td><td>|</td>
5410: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c </tr>..<tr><td>|
5420: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5430: 63 65 6e 74 65 72 22 3e 3c 62 3e 2d 73 69 6e 28 center"><b>-sin(
5440: 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 θ)</b></td
5450: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
5460: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
5470: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
5480: 63 6f 73 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e cos(θ)</b>
5490: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
54a0: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
54b0: 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>|</td></tr>..<
54c0: 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 tr><td>\</td><td
54d0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
54e0: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
54f0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
5500: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5510: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
5520: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 n="center">1</td
5530: 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>/</td></tr>
5540: 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 ..<tr><td colspa
5550: 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c n="5"><hr></td><
5560: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f /tr>..<tr><td ro
5570: 77 73 70 61 6e 3d 22 35 22 20 76 61 6c 69 67 6e wspan="5" valign
5580: 3d 22 6d 69 64 64 6c 65 22 3e 5a 20 52 6f 6c 6c ="middle">Z Roll
5590: 28 3c 62 3e 26 74 68 65 74 61 3b 3c 2f 62 3e 29 (<b>θ</b>)
55a0: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 </td>..<td>/</td
55b0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
55c0: 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 68 65 74 er"><b>cos(&thet
55d0: 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 a;)</b></td><td
55e0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
55f0: 62 3e 2d 73 69 6e 28 26 74 68 65 74 61 3b 29 3c b>-sin(θ)<
5600: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
5610: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
5620: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
5630: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 5c 3c er">0</td><td>\<
5640: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
5650: 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 td>|</td><td ali
5660: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 73 gn="center"><b>s
5670: 69 6e 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c in(θ)</b><
5680: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
5690: 65 6e 74 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 enter"><b>cos(&t
56a0: 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c heta;)</b></td><
56b0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
56c0: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
56d0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
56e0: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>|</td></tr>
56f0: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
5700: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5710: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
5720: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
5730: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5740: 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 ter">1</td><td a
5750: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
5760: 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f /td><td>|</td></
5770: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f tr>..<tr><td>\</
5780: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
5790: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
57a0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
57b0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
57c0: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
57d0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
57e0: 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 >1</td><td>/</td
57f0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
5800: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 </td></tr>..</ta
5810: 62 6c 65 3e 0d 0a 3c 62 72 3e 3c 68 72 3e 0d 0a ble>..<br><hr>..
5820: 3c 68 33 3e 61 70 70 6c 79 69 6e 67 20 61 6e 20 <h3>applying an
5830: 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d Affine Transform
5840: 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 49 6e 20 6f ation</h3>..In o
5850: 72 64 65 72 20 74 6f 20 6d 61 74 65 72 69 61 6c rder to material
5860: 69 7a 65 20 61 6e 20 61 66 66 69 6e 65 20 74 72 ize an affine tr
5870: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 77 65 20 ansformation we
5880: 73 69 6d 70 6c 79 20 68 61 76 65 20 74 6f 20 63 simply have to c
5890: 6f 6d 70 75 74 65 20 20 3c 62 3e 28 78 27 2c 20 ompute <b>(x',
58a0: 79 27 2c 20 7a 27 29 3c 2f 62 3e 20 63 6f 6f 72 y', z')</b> coor
58b0: 64 69 6e 61 74 65 73 20 73 74 61 72 74 69 6e 67 dinates starting
58c0: 20 66 72 6f 6d 20 3c 62 3e 28 78 2c 20 79 2c 20 from <b>(x, y,
58d0: 7a 29 3c 2f 62 3e 20 66 6f 72 20 65 76 65 72 79 z)</b> for every
58e0: 20 70 6f 69 6e 74 20 6f 72 20 76 65 72 74 65 78 point or vertex
58f0: 20 66 6f 75 6e 64 20 69 6e 20 74 68 65 20 69 6e found in the in
5900: 70 75 74 20 47 65 6f 6d 65 74 72 79 20 61 63 63 put Geometry acc
5910: 6f 72 64 69 6e 67 6c 79 20 74 6f 20 74 68 65 20 ordingly to the
5920: 66 6f 6c 6c 6f 77 69 6e 67 20 66 6f 72 6d 75 6c following formul
5930: 61 65 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c ae:..<ul>..<li><
5940: 62 3e 78 27 20 3d 20 61 2a 78 20 2b 20 62 2a 79 b>x' = a*x + b*y
5950: 20 2b 20 63 2a 7a 20 2b 20 78 6f 66 66 3c 2f 62 + c*z + xoff</b
5960: 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 79 ></li>..<li><b>y
5970: 27 20 3d 20 64 2a 78 20 2b 20 65 2a 79 20 2b 20 ' = d*x + e*y +
5980: 66 2a 7a 20 2b 20 79 6f 66 66 3c 2f 62 3e 3c 2f f*z + yoff</b></
5990: 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 7a 27 20 3d li>..<li><b>z' =
59a0: 20 67 2a 78 20 2b 20 68 2a 79 20 2b 20 69 2a 7a g*x + h*y + i*z
59b0: 20 2b 20 7a 6f 66 66 3c 2f 62 3e 3c 2f 6c 69 3e + zoff</b></li>
59c0: 0d 0a 3c 2f 75 6c 3e 3c 62 72 3e 0d 0a 69 6e 20 ..</ul><br>..in
59d0: 74 68 65 20 73 69 6d 70 6c 65 72 20 3c 62 3e 32 the simpler <b>2
59e0: 44 3c 2f 62 3e 20 63 61 73 65 20 74 68 69 73 20 D</b> case this
59f0: 77 69 6c 6c 20 61 73 73 75 6d 65 20 74 68 65 20 will assume the
5a00: 72 65 64 75 63 65 64 20 66 6f 72 6d 3a 0d 0a 3c reduced form:..<
5a10: 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 78 27 20 3d ul>..<li><b>x' =
5a20: 20 61 2a 78 20 2b 20 62 2a 79 20 2b 20 78 6f 66 a*x + b*y + xof
5a30: 66 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e f</b></li>..<li>
5a40: 3c 62 3e 79 27 20 3d 20 64 2a 78 20 2b 20 65 2a <b>y' = d*x + e*
5a50: 79 20 2b 20 79 6f 66 66 3c 2f 62 3e 3c 2f 6c 69 y + yoff</b></li
5a60: 3e 0d 0a 3c 2f 75 6c 3e 3c 62 72 3e 0d 0a 41 73 >..</ul><br>..As
5a70: 20 79 6f 75 20 63 61 6e 20 6e 6f 74 69 63 65 2c you can notice,
5a80: 20 61 70 70 6c 79 69 6e 67 20 61 6e 20 41 66 66 applying an Aff
5a90: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
5aa0: 6f 6e 20 64 6f 65 73 20 6e 6f 74 20 72 65 71 75 on does not requ
5ab0: 69 72 65 73 20 63 6f 6d 70 75 74 69 6e 67 20 61 ires computing a
5ac0: 6e 79 20 74 72 69 67 6f 6e 6f 6d 65 74 72 69 63 ny trigonometric
5ad0: 20 66 75 6e 63 74 69 6f 6e 2e 3c 62 72 3e 0d 0a function.<br>..
5ae0: 54 72 69 67 6f 6e 6f 6d 65 74 72 69 63 20 66 75 Trigonometric fu
5af0: 6e 63 74 69 6f 6e 73 20 61 72 65 20 76 65 72 79 nctions are very
5b00: 20 63 6f 73 74 6c 79 20 69 6e 20 63 6f 6d 70 75 costly in compu
5b10: 74 61 74 69 6f 6e 61 6c 20 74 65 72 6d 73 2c 20 tational terms,
5b20: 73 6f 20 61 70 70 6c 79 69 6e 67 20 61 6e 20 41 so applying an A
5b30: 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 ffine Transforma
5b40: 74 69 6f 6e 20 69 73 20 61 6e 20 69 6e 74 72 69 tion is an intri
5b50: 6e 73 69 63 61 6c 6c 79 20 65 66 66 69 63 69 65 nsically efficie
5b60: 6e 74 20 6d 65 63 68 61 6e 69 73 6d 20 62 65 63 nt mechanism bec
5b70: 61 75 73 65 20 73 69 6d 70 6c 79 20 64 65 70 65 ause simply depe
5b80: 6e 64 73 20 6f 6e 20 6d 75 6c 74 69 70 6c 69 63 nds on multiplic
5b90: 61 74 69 6f 6e 73 20 61 6e 64 20 61 64 64 69 74 ations and addit
5ba0: 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 3c 62 72 3e 3c ions.<br>..<br><
5bb0: 68 72 3e 0d 0a 3c 68 33 3e 63 68 61 69 6e 69 6e hr>..<h3>chainin
5bc0: 67 20 74 77 6f 20 28 6f 72 20 65 76 65 6e 20 6d g two (or even m
5bd0: 6f 72 65 29 20 41 66 66 69 6e 65 20 54 72 61 6e ore) Affine Tran
5be0: 73 66 6f 72 6d 61 74 69 6f 6e 73 20 69 6e 20 61 sformations in a
5bf0: 20 73 69 67 6c 65 20 6f 70 65 72 61 74 69 6f 6e sigle operation
5c00: 3c 2f 68 33 3e 0d 0a 41 66 66 69 6e 65 20 74 72 </h3>..Affine tr
5c10: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 6d 61 74 ansformation mat
5c20: 72 69 63 65 73 20 68 61 76 65 20 61 6e 6f 74 68 rices have anoth
5c30: 65 72 20 61 6d 61 7a 69 6e 67 20 70 72 6f 70 65 er amazing prope
5c40: 72 74 79 2e 3c 62 72 3e 0d 0a 57 65 20 63 61 6e rty.<br>..We can
5c50: 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f <a href="http:/
5c60: 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 /en.wikipedia.or
5c70: 67 2f 77 69 6b 69 2f 4d 61 74 72 69 78 5f 6d 75 g/wiki/Matrix_mu
5c80: 6c 74 69 70 6c 69 63 61 74 69 6f 6e 22 3e 6d 75 ltiplication">mu
5c90: 6c 74 69 70 6c 79 3c 2f 61 3e 20 74 77 6f 20 64 ltiply</a> two d
5ca0: 69 66 66 65 72 65 6e 74 20 61 66 66 69 6e 65 20 ifferent affine
5cb0: 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 6d transformation m
5cc0: 61 74 72 69 63 65 73 20 74 68 75 73 20 6f 62 74 atrices thus obt
5cd0: 61 69 6e 69 6e 67 20 61 20 74 68 69 72 64 20 61 aining a third a
5ce0: 66 66 69 6e 65 20 74 72 61 6e 73 66 6f 72 6d 61 ffine transforma
5cf0: 74 69 6f 6e 20 6d 61 74 72 69 78 2c 20 61 6e 64 tion matrix, and
5d00: 20 74 68 69 73 20 6c 61 74 65 73 74 20 6f 6e 63 this latest onc
5d10: 65 20 61 70 70 6c 69 65 64 20 77 69 6c 6c 20 63 e applied will c
5d20: 6f 6e 74 61 69 6e 20 62 6f 74 68 20 74 72 61 6e ontain both tran
5d30: 73 66 6f 72 6d 61 74 69 6f 6e 73 20 61 6e 64 20 sformations and
5d40: 69 6e 20 74 68 65 20 72 69 67 68 74 20 73 65 71 in the right seq
5d50: 75 65 6e 63 65 2e 3c 62 72 3e 0d 0a 54 68 65 72 uence.<br>..Ther
5d60: 65 20 69 73 20 6e 6f 20 6c 69 6d 69 74 3b 20 77 e is no limit; w
5d70: 65 20 63 61 6e 20 69 6e 66 69 6e 69 74 69 76 65 e can infinitive
5d80: 6c 79 20 63 68 61 69 6e 20 61 73 20 6d 61 6e 79 ly chain as many
5d90: 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 transformations
5da0: 20 61 73 20 72 65 71 75 69 72 65 64 2c 20 77 65 as required, we
5db0: 27 6c 6c 20 73 69 6d 70 6c 79 20 68 61 76 65 20 'll simply have
5dc0: 74 6f 20 63 6f 6e 74 69 6e 75 65 20 6d 75 6c 74 to continue mult
5dd0: 69 70 6c 79 69 6e 67 20 61 6c 6c 20 6d 61 74 72 iplying all matr
5de0: 69 63 65 73 20 6f 6e 65 20 61 66 74 65 72 20 74 ices one after t
5df0: 68 65 20 6f 74 68 65 72 20 63 61 72 65 66 75 6c he other careful
5e00: 6c 79 20 72 65 73 70 65 63 74 69 6e 67 20 74 68 ly respecting th
5e10: 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 73 65 e appropriate se
5e20: 71 75 65 6e 63 65 2e 3c 62 72 3e 0d 0a 41 74 20 quence.<br>..At
5e30: 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 70 the end of the p
5e40: 72 6f 63 65 73 73 20 77 65 27 6c 6c 20 61 6c 77 rocess we'll alw
5e50: 61 79 73 20 67 65 74 20 6a 75 73 74 20 61 20 73 ays get just a s
5e60: 69 6e 67 6c 65 20 61 66 66 69 6e 65 20 74 72 61 ingle affine tra
5e70: 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 6d 61 74 72 nsformation matr
5e80: 69 78 20 66 61 69 74 68 66 75 6c 6c 79 20 72 65 ix faithfully re
5e90: 70 72 65 73 65 6e 74 69 6e 67 20 61 6e 79 20 69 presenting any i
5ea0: 6e 64 69 76 69 64 75 61 6c 20 74 72 61 6e 73 66 ndividual transf
5eb0: 6f 72 6d 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 ormation in the
5ec0: 63 68 61 69 6e 2e 0d 0a 3c 74 61 62 6c 65 20 62 chain...<table b
5ed0: 67 63 6f 6c 6f 72 3d 22 23 66 66 63 30 30 30 22 gcolor="#ffc000"
5ee0: 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 31 30 cellpadding="10
5ef0: 22 3e 3c 74 72 3e 3c 74 64 3e 0d 0a 54 68 65 20 "><tr><td>..The
5f00: 6d 75 6c 74 69 70 6c 69 63 61 74 69 6f 6e 20 62 multiplication b
5f10: 65 74 77 65 65 6e 20 74 77 6f 20 6d 61 74 72 69 etween two matri
5f20: 63 65 73 20 3c 75 3e 69 73 20 6e 6f 74 20 61 20 ces <u>is not a
5f30: 63 6f 6d 6d 75 74 61 74 69 76 65 20 6f 70 65 72 commutative oper
5f40: 61 74 69 6f 6e 3c 2f 75 3e 3a 20 74 68 65 20 72 ation</u>: the r
5f50: 65 6c 61 74 69 76 65 20 6f 72 64 65 72 20 6f 66 elative order of
5f60: 20 6f 70 65 72 61 6e 64 73 20 69 73 20 61 62 73 operands is abs
5f70: 6f 6c 75 74 65 6c 79 20 72 65 6c 65 76 61 6e 74 olutely relevant
5f80: 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 .</td></tr></tab
5f90: 6c 65 3e 0d 0a 3c 68 33 3e 6d 75 6c 74 69 70 6c le>..<h3>multipl
5fa0: 79 69 6e 67 20 74 77 6f 20 6d 61 74 72 69 63 65 ying two matrice
5fb0: 73 3c 2f 68 33 3e 0d 0a 4d 75 6c 74 69 70 6c 69 s</h3>..Multipli
5fc0: 63 61 74 69 6f 6e 20 69 73 20 6e 6f 74 20 72 65 cation is not re
5fd0: 61 6c 6c 79 20 61 20 73 69 6d 70 6c 65 20 6f 70 ally a simple op
5fe0: 65 72 61 74 69 6f 6e 20 77 68 65 6e 20 6d 61 74 eration when mat
5ff0: 72 69 63 65 73 20 61 72 65 20 69 6e 76 6f 6c 76 rices are involv
6000: 65 64 20 61 6e 64 20 72 65 71 75 69 72 65 73 20 ed and requires
6010: 61 20 72 61 74 68 65 72 20 63 6f 6d 70 6c 65 78 a rather complex
6020: 20 70 72 6f 63 65 64 75 72 65 3b 20 74 68 65 20 procedure; the
6030: 66 6f 6c 6c 6f 77 69 6e 67 20 65 78 61 6d 70 6c following exampl
6040: 65 20 73 68 6f 77 73 20 68 6f 77 20 74 6f 20 6d e shows how to m
6050: 75 6c 74 69 70 6c 79 20 74 77 6f 20 3c 62 3e 34 ultiply two <b>4
6060: 20 78 20 34 3c 2f 62 3e 20 6d 61 74 72 69 63 65 x 4</b> matrice
6070: 73 2e 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 20 63 s.<br>..<table c
6080: 65 6c 6c 73 70 61 63 69 6e 67 3d 22 34 22 20 63 ellspacing="4" c
6090: 65 6c 6c 70 61 64 64 69 6e 67 3d 22 34 22 3e 0d ellpadding="4">.
60a0: 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 74 61 62 6c .<tr><td>..<tabl
60b0: 65 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 2f 3c 2f 74 e>..<tr><td>/</t
60c0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
60d0: 74 65 72 22 3e 61 3c 73 75 62 3e 31 31 3c 2f 73 ter">a<sub>11</s
60e0: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
60f0: 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 n="center">a<sub
6100: 3e 31 32 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >12</sub></td><t
6110: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
6120: 3e 61 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 3c >a<sub>13</sub><
6130: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
6140: 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 31 34 3c enter">a<sub>14<
6150: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 3e 5c 3c /sub></td><td>\<
6160: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
6170: 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 td>|</td><td ali
6180: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 gn="center">a<su
6190: 62 3e 32 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>21</sub></td><
61a0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
61b0: 22 3e 61 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e ">a<sub>22</sub>
61c0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
61d0: 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 32 33 center">a<sub>23
61e0: 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 </sub></td><td a
61f0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c lign="center">a<
6200: 73 75 62 3e 32 34 3c 2f 73 75 62 3e 3c 2f 74 64 sub>24</sub></td
6210: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>|</td></tr>
6220: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
6230: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6240: 72 22 3e 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 r">a<sub>31</sub
6250: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
6260: 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 33 "center">a<sub>3
6270: 32 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 2</sub></td><td
6280: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 align="center">a
6290: 3c 73 75 62 3e 33 33 3c 2f 73 75 62 3e 3c 2f 74 <sub>33</sub></t
62a0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
62b0: 74 65 72 22 3e 61 3c 73 75 62 3e 33 34 3c 2f 73 ter">a<sub>34</s
62c0: 75 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 ub></td><td>|</t
62d0: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
62e0: 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >\</td><td align
62f0: 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e ="center">a<sub>
6300: 34 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 41</sub></td><td
6310: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6320: 61 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 3c 2f a<sub>42</sub></
6330: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6340: 6e 74 65 72 22 3e 61 3c 73 75 62 3e 34 33 3c 2f nter">a<sub>43</
6350: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 sub></td><td ali
6360: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 gn="center">a<su
6370: 62 3e 34 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>44</sub></td><
6380: 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>/</td></tr>..
6390: 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 2f 74 64 3e 3c </table>..</td><
63a0: 74 64 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c td valign="middl
63b0: 65 22 3e 2a 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 0d e">*</td>..<td>.
63c0: 0a 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 .<table>..<tr><t
63d0: 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>/</td><td alig
63e0: 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 n="center">b<sub
63f0: 3e 31 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >11</sub></td><t
6400: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
6410: 3e 62 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 3c >b<sub>12</sub><
6420: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
6430: 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 31 33 3c enter">b<sub>13<
6440: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c /sub></td><td al
6450: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 ign="center">b<s
6460: 75 62 3e 31 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e ub>14</sub></td>
6470: 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>\</td></tr>.
6480: 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c .<tr><td>|</td><
6490: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
64a0: 22 3e 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e ">b<sub>21</sub>
64b0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
64c0: 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 32 32 center">b<sub>22
64d0: 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 </sub></td><td a
64e0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c lign="center">b<
64f0: 73 75 62 3e 32 33 3c 2f 73 75 62 3e 3c 2f 74 64 sub>23</sub></td
6500: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
6510: 65 72 22 3e 62 3c 73 75 62 3e 32 34 3c 2f 73 75 er">b<sub>24</su
6520: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 b></td><td>|</td
6530: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
6540: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
6550: 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 33 "center">b<sub>3
6560: 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 1</sub></td><td
6570: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 align="center">b
6580: 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e 3c 2f 74 <sub>32</sub></t
6590: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
65a0: 74 65 72 22 3e 62 3c 73 75 62 3e 33 33 3c 2f 73 ter">b<sub>33</s
65b0: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
65c0: 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 n="center">b<sub
65d0: 3e 33 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >34</sub></td><t
65e0: 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>|</td></tr>..<
65f0: 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 tr><td>\</td><td
6600: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6610: 62 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 3c 2f b<sub>41</sub></
6620: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6630: 6e 74 65 72 22 3e 62 3c 73 75 62 3e 34 32 3c 2f nter">b<sub>42</
6640: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 sub></td><td ali
6650: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 gn="center">b<su
6660: 62 3e 34 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>43</sub></td><
6670: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6680: 22 3e 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e ">b<sub>44</sub>
6690: 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c </td><td>/</td><
66a0: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a /tr>..</table>..
66b0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 20 </td>..</td><td
66c0: 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e valign="middle">
66d0: 3d 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 0d 0a 3c 74 =</td>..<td>..<t
66e0: 61 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 2f able>..<tr><td>/
66f0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6700: 63 65 6e 74 65 72 22 3e 0d 0a 28 61 3c 73 75 62 center">..(a<sub
6710: 3e 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >11</sub>*b<sub>
6720: 31 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 11</sub> + ..a<s
6730: 75 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>12</sub>*b<su
6740: 62 3e 32 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>21</sub> + ..a
6750: 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c <sub>13</sub>*b<
6760: 73 75 62 3e 33 31 3c 2f 73 75 62 3e 20 2b 20 0d sub>31</sub> + .
6770: 0a 61 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a .a<sub>14</sub>*
6780: 62 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 29 3c b<sub>41</sub>)<
6790: 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 /td>..<td>(a<sub
67a0: 3e 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >11</sub>*b<sub>
67b0: 31 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 12</sub> + ..a<s
67c0: 75 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>12</sub>*b<su
67d0: 62 3e 32 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>22</sub> + ..a
67e0: 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c <sub>13</sub>*b<
67f0: 73 75 62 3e 33 32 3c 2f 73 75 62 3e 20 2b 0d 0a sub>32</sub> +..
6800: 61 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 a<sub>14</sub>*b
6810: 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 29 3c 2f <sub>42</sub>)</
6820: 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e td>..<td>(a<sub>
6830: 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 11</sub>*b<sub>1
6840: 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 3</sub> + ..a<su
6850: 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>12</sub>*b<sub
6860: 3e 32 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >23</sub> + ..a<
6870: 73 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>13</sub>*b<s
6880: 75 62 3e 33 33 3c 2f 73 75 62 3e 20 2b 0d 0a 61 ub>33</sub> +..a
6890: 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 3c <sub>14</sub>*b<
68a0: 73 75 62 3e 34 33 3c 2f 73 75 62 3e 29 3c 2f 74 sub>43</sub>)</t
68b0: 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 31 d>..<td>(a<sub>1
68c0: 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 34 1</sub>*b<sub>14
68d0: 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 </sub> + ..a<sub
68e0: 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >12</sub>*b<sub>
68f0: 32 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 24</sub> + ..a<s
6900: 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>13</sub>*b<su
6910: 62 3e 33 34 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c b>34</sub> +..a<
6920: 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 3c 73 sub>14</sub>*b<s
6930: 75 62 3e 34 34 3c 2f 73 75 62 3e 29 3c 2f 74 64 ub>44</sub>)</td
6940: 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>\</td></tr>
6950: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
6960: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6970: 72 22 3e 0d 0a 28 61 3c 73 75 62 3e 32 31 3c 2f r">..(a<sub>21</
6980: 73 75 62 3e 2a 62 3c 73 75 62 3e 31 31 3c 2f 73 sub>*b<sub>11</s
6990: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 ub> + ..a<sub>22
69a0: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 31 3c </sub>*b<sub>21<
69b0: 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e /sub> + ..a<sub>
69c0: 32 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 23</sub>*b<sub>3
69d0: 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 1</sub> + ..a<su
69e0: 62 3e 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>24</sub>*b<sub
69f0: 3e 34 31 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d >41</sub>)</td>.
6a00: 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f .<td>(a<sub>21</
6a10: 73 75 62 3e 2a 62 3c 73 75 62 3e 31 32 3c 2f 73 sub>*b<sub>12</s
6a20: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 ub> + ..a<sub>22
6a30: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 32 3c </sub>*b<sub>22<
6a40: 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e /sub> + ..a<sub>
6a50: 32 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 23</sub>*b<sub>3
6a60: 32 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 2</sub> +..a<sub
6a70: 3e 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >24</sub>*b<sub>
6a80: 34 32 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 42</sub>)</td>..
6a90: 3c 74 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f 73 <td>(a<sub>21</s
6aa0: 75 62 3e 2a 62 3c 73 75 62 3e 31 33 3c 2f 73 75 ub>*b<sub>13</su
6ab0: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c b> + ..a<sub>22<
6ac0: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 33 3c 2f /sub>*b<sub>23</
6ad0: 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 sub> + ..a<sub>2
6ae0: 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 33 3</sub>*b<sub>33
6af0: 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e </sub> +..a<sub>
6b00: 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 24</sub>*b<sub>4
6b10: 33 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 3</sub>)</td>..<
6b20: 74 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f 73 75 td>(a<sub>21</su
6b30: 62 3e 2a 62 3c 73 75 62 3e 31 34 3c 2f 73 75 62 b>*b<sub>14</sub
6b40: 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c 2f > + ..a<sub>22</
6b50: 73 75 62 3e 2a 62 3c 73 75 62 3e 32 34 3c 2f 73 sub>*b<sub>24</s
6b60: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 33 ub> + ..a<sub>23
6b70: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 34 3c </sub>*b<sub>34<
6b80: 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 32 /sub> +..a<sub>2
6b90: 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 34 4</sub>*b<sub>44
6ba0: 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 3c 74 64 3e </sub>)</td><td>
6bb0: 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 |</td></tr>..<tr
6bc0: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>|</td><td a
6bd0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0d 0a lign="center">..
6be0: 28 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a (a<sub>31</sub>*
6bf0: 62 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 20 2b b<sub>11</sub> +
6c00: 20 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 ..a<sub>32</sub
6c10: 3e 2a 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e >*b<sub>21</sub>
6c20: 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 + ..a<sub>33</s
6c30: 75 62 3e 2a 62 3c 73 75 62 3e 33 31 3c 2f 73 75 ub>*b<sub>31</su
6c40: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 34 3c b> + ..a<sub>34<
6c50: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 31 3c 2f /sub>*b<sub>41</
6c60: 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e sub>)</td>..<td>
6c70: 28 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a (a<sub>31</sub>*
6c80: 62 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 20 2b b<sub>12</sub> +
6c90: 20 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 ..a<sub>32</sub
6ca0: 3e 2a 62 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e >*b<sub>22</sub>
6cb0: 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 + ..a<sub>33</s
6cc0: 75 62 3e 2a 62 3c 73 75 62 3e 33 32 3c 2f 73 75 ub>*b<sub>32</su
6cd0: 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f b> +..a<sub>34</
6ce0: 73 75 62 3e 2a 62 3c 73 75 62 3e 34 32 3c 2f 73 sub>*b<sub>42</s
6cf0: 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 ub>)</td>..<td>(
6d00: 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 a<sub>31</sub>*b
6d10: 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 20 2b 20 <sub>13</sub> +
6d20: 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e ..a<sub>32</sub>
6d30: 2a 62 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 20 *b<sub>23</sub>
6d40: 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 + ..a<sub>33</su
6d50: 62 3e 2a 62 3c 73 75 62 3e 33 33 3c 2f 73 75 62 b>*b<sub>33</sub
6d60: 3e 20 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f 73 > +..a<sub>34</s
6d70: 75 62 3e 2a 62 3c 73 75 62 3e 34 33 3c 2f 73 75 ub>*b<sub>43</su
6d80: 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 b>)</td>..<td>(a
6d90: 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 3c <sub>31</sub>*b<
6da0: 73 75 62 3e 31 34 3c 2f 73 75 62 3e 20 2b 20 0d sub>14</sub> + .
6db0: 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e 2a .a<sub>32</sub>*
6dc0: 62 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 20 2b b<sub>24</sub> +
6dd0: 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 62 ..a<sub>33</sub
6de0: 3e 2a 62 3c 73 75 62 3e 33 34 3c 2f 73 75 62 3e >*b<sub>34</sub>
6df0: 20 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f 73 75 +..a<sub>34</su
6e00: 62 3e 2a 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 b>*b<sub>44</sub
6e10: 3e 29 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 >)</td><td>|</td
6e20: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
6e30: 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d \</td><td align=
6e40: 22 63 65 6e 74 65 72 22 3e 0d 0a 28 61 3c 73 75 "center">..(a<su
6e50: 62 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>41</sub>*b<sub
6e60: 3e 31 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >11</sub> + ..a<
6e70: 73 75 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 sub>42</sub>*b<s
6e80: 75 62 3e 32 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a ub>21</sub> + ..
6e90: 61 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 a<sub>43</sub>*b
6ea0: 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 20 2b 20 <sub>31</sub> +
6eb0: 0d 0a 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e ..a<sub>44</sub>
6ec0: 2a 62 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 29 *b<sub>41</sub>)
6ed0: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 </td>..<td>(a<su
6ee0: 62 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>41</sub>*b<sub
6ef0: 3e 31 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >12</sub> + ..a<
6f00: 73 75 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 sub>42</sub>*b<s
6f10: 75 62 3e 32 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a ub>22</sub> + ..
6f20: 61 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 a<sub>43</sub>*b
6f30: 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e 20 2b 0d <sub>32</sub> +.
6f40: 0a 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a .a<sub>44</sub>*
6f50: 62 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 29 3c b<sub>42</sub>)<
6f60: 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 /td>..<td>(a<sub
6f70: 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >41</sub>*b<sub>
6f80: 31 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 13</sub> + ..a<s
6f90: 75 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>42</sub>*b<su
6fa0: 62 3e 32 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>23</sub> + ..a
6fb0: 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c <sub>43</sub>*b<
6fc0: 73 75 62 3e 33 33 3c 2f 73 75 62 3e 20 2b 0d 0a sub>33</sub> +..
6fd0: 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a 62 a<sub>44</sub>*b
6fe0: 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 29 3c 2f <sub>43</sub>)</
6ff0: 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e td>..<td>(a<sub>
7000: 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 41</sub>*b<sub>1
7010: 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 4</sub> + ..a<su
7020: 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>42</sub>*b<sub
7030: 3e 32 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >24</sub> + ..a<
7040: 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>43</sub>*b<s
7050: 75 62 3e 33 34 3c 2f 73 75 62 3e 20 2b 0d 0a 61 ub>34</sub> +..a
7060: 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a 62 3c <sub>44</sub>*b<
7070: 73 75 62 3e 34 34 3c 2f 73 75 62 3e 29 3c 2f 74 sub>44</sub>)</t
7080: 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 d><td>/</td></tr
7090: 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 2f 74 >..</table>..</t
70a0: 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 0d d></tr></table>.
70b0: 0a 3c 68 33 3e 69 64 65 6e 74 69 74 79 20 6d 61 .<h3>identity ma
70c0: 74 72 69 78 3c 2f 68 33 3e 0d 0a 41 6e 20 69 6e trix</h3>..An in
70d0: 64 65 6e 74 69 79 20 6d 61 74 72 69 78 20 73 69 dentiy matrix si
70e0: 6d 70 6c 79 20 63 6f 72 72 65 73 70 6f 6e 64 73 mply corresponds
70f0: 20 74 6f 20 61 6e 20 61 66 66 69 6e 65 20 74 72 to an affine tr
7100: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 6c 61 63 ansformation lac
7110: 6b 69 6e 67 20 61 6e 79 20 61 63 74 75 61 6c 20 king any actual
7120: 65 66 66 65 63 74 3a 20 61 74 20 74 68 65 20 65 effect: at the e
7130: 6e 64 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 nd of the proces
7140: 73 20 74 68 65 20 74 72 61 6e 73 66 6f 72 6d 65 s the transforme
7150: 64 20 67 65 6f 6d 65 74 72 79 20 77 69 6c 6c 20 d geometry will
7160: 62 65 20 65 78 61 63 74 6c 79 20 74 68 65 20 73 be exactly the s
7170: 61 6d 65 20 61 73 20 62 65 66 6f 72 65 2e 3c 62 ame as before.<b
7180: 72 3e 0d 0a 4d 6f 72 65 6f 76 65 72 20 61 6e 20 r>..Moreover an
7190: 69 64 65 6e 74 69 74 79 20 6d 61 74 72 69 78 20 identity matrix
71a0: 70 6c 61 79 73 20 61 20 73 70 65 63 69 61 6c 20 plays a special
71b0: 72 6f 6c 65 20 69 6e 20 6d 75 6c 74 69 70 6c 69 role in multipli
71c0: 63 61 74 69 6f 6e 3a 20 74 68 65 20 72 65 73 75 cation: the resu
71d0: 6c 74 69 6e 67 20 6d 61 74 72 69 78 20 77 69 6c lting matrix wil
71e0: 6c 20 61 6c 77 61 79 73 20 62 65 20 65 78 61 63 l always be exac
71f0: 74 6c 79 20 74 68 65 20 73 61 6d 65 20 6f 66 20 tly the same of
7200: 74 68 65 20 6f 74 68 65 72 20 6d 61 74 72 69 78 the other matrix
7210: 2e 3c 62 72 3e 0d 0a 28 3c 69 3e 69 74 27 73 20 .<br>..(<i>it's
7220: 6d 6f 72 65 20 6f 72 20 6c 65 73 73 20 74 68 65 more or less the
7230: 20 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 6d equivalent of m
7240: 75 6c 74 69 70 6c 79 69 6e 67 20 65 2e 67 2e 20 ultiplying e.g.
7250: 3c 62 3e 38 2a 31 3d 38 3c 2f 62 3e 20 69 6e 20 <b>8*1=8</b> in
7260: 61 6e 20 6f 72 64 69 6e 61 72 79 20 73 63 61 6c an ordinary scal
7270: 61 72 20 6d 75 6c 74 69 70 6c 69 63 61 74 69 6f ar multiplicatio
7280: 6e 3c 2f 69 3e 29 2e 3c 62 72 3e 3c 62 72 3e 0d n</i>).<br><br>.
7290: 0a 3c 68 72 3e 0d 0a 3c 68 33 3e 42 6f 72 69 6e .<hr>..<h3>Borin
72a0: 67 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 3a g SQL functions:
72b0: 20 61 20 66 6f 72 6d 61 6c 20 65 78 70 6c 61 6e a formal explan
72c0: 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 3c 74 61 62 ation</h3>..<tab
72d0: 6c 65 20 62 6f 72 64 65 72 3d 22 31 22 20 63 65 le border="1" ce
72e0: 6c 6c 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 llspacing="4" ce
72f0: 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20 62 67 llpadding="8" bg
7300: 63 6f 6c 6f 72 3d 22 23 66 66 66 30 64 30 22 3e color="#fff0d0">
7310: 0d 0a 3c 74 72 3e 3c 74 68 20 62 67 63 6f 6c 6f ..<tr><th bgcolo
7320: 72 3d 22 23 43 33 42 30 39 31 22 3e 53 51 4c 20 r="#C3B091">SQL
7330: 46 75 6e 63 74 69 6f 6e 3c 2f 74 68 3e 3c 74 68 Function</th><th
7340: 20 62 67 63 6f 6c 6f 72 3d 22 23 43 33 42 30 39 bgcolor="#C3B09
7350: 31 22 3e 44 65 73 63 72 69 70 74 69 6f 6e 3c 2f 1">Description</
7360: 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 th></tr>..<tr><t
7370: 64 3e 3c 62 3e 41 54 4d 5f 54 72 61 6e 73 66 6f d><b>ATM_Transfo
7380: 72 6d 20 28 20 42 4c 4f 42 20 47 65 6f 6d 65 74 rm ( BLOB Geomet
7390: 72 79 20 2c 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ry , BLOB AT-mat
73a0: 72 69 78 20 29 20 3a 20 42 4c 4f 42 20 47 65 6f rix ) : BLOB Geo
73b0: 6d 65 74 72 79 3c 2f 74 64 3e 3c 74 64 3e 57 69 metry</td><td>Wi
73c0: 6c 6c 20 72 65 74 75 72 6e 20 61 20 6e 65 77 20 ll return a new
73d0: 47 65 6f 6d 65 74 72 79 20 62 79 20 61 70 70 6c Geometry by appl
73e0: 79 69 6e 67 20 61 6e 20 41 66 66 69 6e 65 20 54 ying an Affine T
73f0: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 74 6f ransformation to
7400: 20 74 68 65 20 69 6e 70 75 74 20 47 65 6f 6d 65 the input Geome
7410: 74 72 79 2e 3c 62 72 3e 0d 0a 54 68 65 20 6f 75 try.<br>..The ou
7420: 74 70 75 74 20 47 65 6f 6d 65 74 72 79 20 77 69 tput Geometry wi
7430: 6c 6c 20 70 72 65 73 65 72 76 65 20 74 68 65 20 ll preserve the
7440: 6f 72 69 67 69 6e 61 6c 20 53 52 49 44 2c 20 64 original SRID, d
7450: 69 6d 65 6e 73 69 6f 6e 73 20 61 6e 64 20 74 79 imensions and ty
7460: 70 65 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 77 69 pe.<br>..NULL wi
7470: 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 6f ll be returned o
7480: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 n invalid argume
7490: 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a nts.</td></tr>..
74a0: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 49 <tr><td><b>ATM_I
74b0: 73 56 61 6c 69 64 20 28 20 42 4c 4f 42 20 41 54 sValid ( BLOB AT
74c0: 2d 6d 61 74 72 69 78 20 29 20 3a 20 42 4f 4f 4c -matrix ) : BOOL
74d0: 45 41 4e 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c EAN</td><td>Will
74e0: 20 63 68 65 63 6b 20 69 66 20 61 20 42 4c 4f 42 check if a BLOB
74f0: 20 64 6f 20 72 65 61 6c 6c 79 20 63 6f 72 72 65 do really corre
7500: 73 70 6f 6e 64 20 74 6f 20 61 6e 20 65 6e 63 6f spond to an enco
7510: 64 65 64 20 41 66 66 69 6e 65 20 54 72 61 6e 73 ded Affine Trans
7520: 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 formation Matrix
7530: 20 74 68 65 6e 20 72 65 74 75 72 6e 69 6e 67 20 then returning
7540: 54 52 55 45 20 6f 72 20 46 41 4c 53 45 2e 3c 62 TRUE or FALSE.<b
7550: 72 3e 0d 0a 2d 31 20 77 69 6c 6c 20 62 65 20 72 r>..-1 will be r
7560: 65 74 75 72 6e 65 64 20 69 66 20 74 68 65 20 61 eturned if the a
7570: 72 67 75 6d 65 6e 74 20 69 73 6e 27 74 20 6f 66 rgument isn't of
7580: 20 74 68 65 20 42 4c 4f 42 20 74 79 70 65 2e 3c the BLOB type.<
7590: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
75a0: 74 64 3e 3c 62 3e 41 54 4d 5f 41 73 54 65 78 74 td><b>ATM_AsText
75b0: 20 28 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 ( BLOB AT-matri
75c0: 78 20 29 20 3a 20 54 45 58 54 3c 2f 74 64 3e 3c x ) : TEXT</td><
75d0: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 td>Will return a
75e0: 20 74 65 78 74 20 73 65 72 69 61 6c 69 7a 65 64 text serialized
75f0: 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 representation
7600: 6f 66 20 74 68 65 20 4d 61 74 72 69 78 2e 3c 62 of the Matrix.<b
7610: 72 3e 0d 0a 4e 55 4c 4c 20 77 69 6c 6c 20 62 65 r>..NULL will be
7620: 20 72 65 74 75 72 6e 65 64 20 6f 6e 20 69 6e 76 returned on inv
7630: 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c alid arguments.<
7640: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
7650: 74 64 3e 3c 62 3e 41 54 4d 5f 4d 75 6c 74 69 70 td><b>ATM_Multip
7660: 6c 79 20 28 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ly ( BLOB AT-mat
7670: 72 69 78 2d 41 20 2c 20 42 4c 4f 42 20 41 54 2d rix-A , BLOB AT-
7680: 6d 61 74 72 69 78 2d 42 20 29 20 3a 20 42 4c 4f matrix-B ) : BLO
7690: 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 74 64 3e B AT-matrix</td>
76a0: 3c 74 64 3e 57 69 6c 6c 20 6d 75 6c 74 69 70 6c <td>Will multipl
76b0: 79 20 4d 61 74 72 69 78 2d 42 20 62 79 20 4d 61 y Matrix-B by Ma
76c0: 74 72 69 78 2d 41 20 74 68 65 6e 20 72 65 74 75 trix-A then retu
76d0: 72 6e 69 67 6e 20 74 68 65 20 72 65 73 75 6c 74 rnign the result
76e0: 69 6e 67 20 4d 61 74 72 69 78 2e 3c 62 72 3e 0d ing Matrix.<br>.
76f0: 0a 4e 55 4c 4c 20 77 69 6c 6c 20 62 65 20 72 65 .NULL will be re
7700: 74 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 turned on invali
7710: 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 68 72 3e d arguments.<hr>
7720: 0d 0a 3c 75 3e 4e 6f 74 65 3c 2f 75 3e 3a 20 74 ..<u>Note</u>: t
7730: 68 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f he transformatio
7740: 6e 20 64 65 66 69 6e 65 64 20 62 79 20 4d 61 74 n defined by Mat
7750: 72 69 78 2d 41 20 28 6c 65 66 74 20 6f 70 65 72 rix-A (left oper
7760: 61 6e 64 29 20 77 69 6c 6c 20 61 6c 77 61 79 73 and) will always
7770: 20 68 61 70 70 65 6e 20 3c 75 3e 61 66 74 65 72 happen <u>after
7780: 3c 2f 75 3e 20 61 70 70 6c 79 69 6e 67 20 61 6c </u> applying al
7790: 6c 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e l transformation
77a0: 73 20 64 65 66 69 6e 65 64 20 62 79 20 4d 61 74 s defined by Mat
77b0: 72 69 78 2d 42 20 28 72 69 67 68 74 20 6f 70 65 rix-B (right ope
77c0: 72 61 6e 64 29 2e 3c 2f 74 64 3e 3c 2f 74 72 3e rand).</td></tr>
77d0: 0d 0a 3c 74 72 3e 3c 74 68 20 63 6f 6c 73 70 61 ..<tr><th colspa
77e0: 6e 3d 22 32 22 20 62 67 63 6f 6c 6f 72 3d 22 23 n="2" bgcolor="#
77f0: 46 30 45 36 38 43 22 20 61 6c 69 67 6e 3d 22 63 F0E68C" align="c
7800: 65 6e 74 65 72 22 3e 53 51 4c 20 66 75 6e 63 74 enter">SQL funct
7810: 69 6f 6e 73 20 63 72 65 61 74 69 6e 67 20 61 6e ions creating an
7820: 64 20 69 6e 69 74 69 61 6c 69 7a 69 6e 67 20 61 d initializing a
7830: 20 6e 65 77 20 41 66 66 69 6e 65 20 54 72 61 6e new Affine Tran
7840: 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 sformation Matri
7850: 78 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 x</th></tr>..<tr
7860: 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 ><td><b>ATM_Crea
7870: 74 65 20 28 20 76 6f 69 64 20 29 20 3a 20 42 4c te ( void ) : BL
7880: 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e OB AT-matrix</b>
7890: 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 </td><td>Will re
78a0: 74 75 72 6e 20 61 6e 20 49 64 65 6e 74 69 74 79 turn an Identity
78b0: 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 Affine Transfor
78c0: 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 2e 3c 62 mation Matrix.<b
78d0: 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 r>..NULL if any
78e0: 65 72 72 6f 72 20 6f 63 63 75 72 73 2e 3c 2f 74 error occurs.</t
78f0: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
7900: 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 20 28 ><b>ATM_Create (
7910: 20 64 6f 75 62 6c 65 20 61 20 2c 20 64 6f 75 62 double a , doub
7920: 6c 65 20 62 20 2c 20 64 6f 75 62 6c 65 20 64 20 le b , double d
7930: 2c 20 64 6f 75 62 6c 65 20 65 20 2c 20 64 6f 75 , double e , dou
7940: 62 6c 65 20 78 6f 66 66 20 2c 20 64 6f 75 62 6c ble xoff , doubl
7950: 65 20 79 6f 66 66 20 29 20 3a 20 42 4c 4f 42 20 e yoff ) : BLOB
7960: 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 AT-matrix</b></t
7970: 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 d><td>Will retur
7980: 6e 20 61 20 32 44 20 41 66 66 69 6e 65 20 54 72 n a 2D Affine Tr
7990: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 ansformation Mat
79a0: 72 69 78 20 69 6e 69 74 69 61 6c 69 7a 65 64 20 rix initialized
79b0: 77 69 74 68 20 65 78 70 6c 69 63 74 20 76 61 6c with explict val
79c0: 75 65 73 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 ues.<br>..NULL i
79d0: 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 f any error occu
79e0: 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 rs or on invalid
79f0: 20 61 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e arguments.</td>
7a00: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c </tr>..<tr><td><
7a10: 62 3e 41 54 4d 5f 43 72 65 61 74 65 20 28 20 64 b>ATM_Create ( d
7a20: 6f 75 62 6c 65 20 61 20 2c 20 64 6f 75 62 6c 65 ouble a , double
7a30: 20 62 20 2c 20 64 6f 75 62 6c 65 20 63 20 2c 20 b , double c ,
7a40: 64 6f 75 62 6c 65 20 64 20 2c 20 64 6f 75 62 6c double d , doubl
7a50: 65 20 65 20 2c 20 64 6f 75 62 6c 65 20 66 20 2c e e , double f ,
7a60: 20 64 6f 75 62 6c 65 20 67 20 2c 20 64 6f 75 62 double g , doub
7a70: 6c 65 20 68 20 2c 20 64 6f 75 62 6c 65 20 69 20 le h , double i
7a80: 2c 20 64 6f 75 62 6c 65 20 78 6f 66 66 20 2c 20 , double xoff ,
7a90: 64 6f 75 62 6c 65 20 79 6f 66 66 20 2c 20 64 6f double yoff , do
7aa0: 75 62 6c 65 20 64 6f 75 62 6c 65 20 7a 6f 66 66 uble double zoff
7ab0: 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ) : BLOB AT-mat
7ac0: 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e rix</b></td><td>
7ad0: 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 33 44 Will return a 3D
7ae0: 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 Affine Transfor
7af0: 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 69 6e mation Matrix in
7b00: 69 74 69 61 6c 69 7a 65 64 20 77 69 74 68 20 65 itialized with e
7b10: 78 70 6c 69 63 74 20 76 61 6c 75 65 73 2e 3c 62 xplict values.<b
7b20: 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 r>..NULL if any
7b30: 65 72 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 error occurs or
7b40: 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d on invalid argum
7b50: 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d ents.</td></tr>.
7b60: 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f .<tr><td><b>ATM_
7b70: 43 72 65 61 74 65 54 72 61 6e 73 6c 61 74 65 20 CreateTranslate
7b80: 28 20 64 6f 75 62 6c 65 20 74 78 20 2c 20 64 6f ( double tx , do
7b90: 75 62 6c 65 20 74 79 20 29 20 3a 20 42 4c 4f 42 uble ty ) : BLOB
7ba0: 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 62 AT-matrix</b><b
7bb0: 72 3e 0d 0a 3c 62 3e 41 54 4d 5f 43 72 65 61 74 r>..<b>ATM_Creat
7bc0: 65 54 72 61 6e 73 6c 61 74 65 20 28 20 64 6f 75 eTranslate ( dou
7bd0: 62 6c 65 20 74 78 20 2c 20 64 6f 75 62 6c 65 20 ble tx , double
7be0: 74 79 20 2c 20 64 6f 75 62 6c 65 20 74 7a 20 29 ty , double tz )
7bf0: 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 : BLOB AT-matri
7c00: 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 x</b></td><td>Wi
7c10: 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 41 66 66 ll return an Aff
7c20: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
7c30: 6f 6e 20 4d 61 74 72 69 78 20 69 6e 69 74 69 61 on Matrix initia
7c40: 6c 69 7a 65 64 20 72 65 73 70 65 63 74 69 76 65 lized respective
7c50: 6c 79 20 61 73 20 61 20 32 44 20 6f 72 20 33 44 ly as a 2D or 3D
7c60: 20 54 72 61 6e 73 6c 61 74 65 2e 3c 62 72 3e 0d Translate.<br>.
7c70: 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 .NULL if any err
7c80: 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 or occurs or on
7c90: 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 invalid argument
7ca0: 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 s.</td></tr>..<t
7cb0: 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 r><td><b>ATM_Cre
7cc0: 61 74 65 53 63 61 6c 65 20 28 20 64 6f 75 62 6c ateScale ( doubl
7cd0: 65 20 73 78 20 2c 20 64 6f 75 62 6c 65 20 73 79 e sx , double sy
7ce0: 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ) : BLOB AT-mat
7cf0: 72 69 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e rix</b><br>..<b>
7d00: 41 54 4d 5f 43 72 65 61 74 65 53 63 61 6c 65 20 ATM_CreateScale
7d10: 28 20 64 6f 75 62 6c 65 20 73 78 20 2c 20 64 6f ( double sx , do
7d20: 75 62 6c 65 20 73 79 20 2c 20 64 6f 75 62 6c 65 uble sy , double
7d30: 20 73 7a 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d sz ) : BLOB AT-
7d40: 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c matrix</b></td><
7d50: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 td>Will return a
7d60: 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f n Affine Transfo
7d70: 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 69 rmation Matrix i
7d80: 6e 69 74 69 61 6c 69 7a 65 64 20 72 65 73 70 65 nitialized respe
7d90: 63 74 69 76 65 6c 79 20 61 73 20 61 20 32 44 20 ctively as a 2D
7da0: 6f 72 20 33 44 20 53 63 61 6c 65 2e 3c 62 72 3e or 3D Scale.<br>
7db0: 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 ..NULL if any er
7dc0: 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e ror occurs or on
7dd0: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e invalid argumen
7de0: 74 73 2e 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a ts..</td></tr>..
7df0: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 <tr><td><b>ATM_C
7e00: 72 65 61 74 65 52 6f 74 61 74 65 20 28 20 64 6f reateRotate ( do
7e10: 75 62 6c 65 20 61 6e 67 6c 65 20 29 20 3a 20 42 uble angle ) : B
7e20: 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 LOB AT-matrix</b
7e30: 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 54 4d 5f 43 72 ><br>..<b>ATM_Cr
7e40: 65 61 74 65 5a 52 6f 6c 6c 20 28 20 64 6f 75 62 eateZRoll ( doub
7e50: 6c 65 20 61 6e 67 6c 65 20 29 20 3a 20 42 4c 4f le angle ) : BLO
7e60: 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c B AT-matrix</b><
7e70: 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 /td><td>Will ret
7e80: 75 72 6e 20 61 6e 20 41 66 66 69 6e 65 20 54 72 urn an Affine Tr
7e90: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 ansformation Mat
7ea0: 72 69 78 20 69 6e 69 74 69 61 6c 69 7a 65 64 20 rix initialized
7eb0: 61 73 20 52 6f 74 61 74 69 6f 6e 20 61 72 6f 75 as Rotation arou
7ec0: 6e 64 20 74 68 65 20 5a 20 61 78 69 73 2e 3c 62 nd the Z axis.<b
7ed0: 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 r>..NULL if any
7ee0: 65 72 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 error occurs or
7ef0: 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d on invalid argum
7f00: 65 6e 74 73 2e 3c 68 72 3e 0d 0a 54 68 65 20 61 ents.<hr>..The a
7f10: 6e 67 6c 65 20 69 73 20 61 6c 77 61 79 73 20 65 ngle is always e
7f20: 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 6d 65 xpected to be me
7f30: 73 75 72 65 64 20 69 6e 20 64 65 63 69 6d 61 6c sured in decimal
7f40: 20 64 65 67 72 65 65 73 2e 20 54 68 65 20 64 69 degrees. The di
7f50: 72 65 63 74 69 6f 6e 20 6f 66 20 72 6f 74 61 74 rection of rotat
7f60: 69 6f 6e 20 69 73 20 64 65 66 69 6e 65 64 20 73 ion is defined s
7f70: 75 63 68 20 74 68 61 74 20 70 6f 73 69 74 69 76 uch that positiv
7f80: 65 20 61 6e 67 6c 65 73 20 72 6f 74 61 74 65 20 e angles rotate
7f90: 69 6e 20 74 68 65 20 64 69 72 65 63 74 69 6f 6e in the direction
7fa0: 20 66 72 6f 6d 20 74 68 65 20 70 6f 73 69 74 69 from the positi
7fb0: 76 65 20 58 20 61 78 69 73 20 74 6f 77 61 72 64 ve X axis toward
7fc0: 20 74 68 65 20 70 6f 73 69 74 69 76 65 20 59 20 the positive Y
7fd0: 61 78 69 73 2e 20 57 69 74 68 20 74 68 65 20 64 axis. With the d
7fe0: 65 66 61 75 6c 74 20 61 78 69 73 20 6f 72 69 65 efault axis orie
7ff0: 6e 74 61 74 69 6f 6e 20 20 70 6f 73 69 74 69 76 ntation positiv
8000: 65 20 61 6e 67 6c 65 73 20 72 6f 74 61 74 65 20 e angles rotate
8010: 69 6e 20 61 20 63 6f 75 6e 74 65 72 63 6c 6f 63 in a countercloc
8020: 6b 77 69 73 65 20 64 69 72 65 63 74 69 6f 6e 2e kwise direction.
8030: 3c 68 72 3e 0d 0a 3c 75 3e 4e 6f 74 65 3c 2f 75 <hr>..<u>Note</u
8040: 3e 3a 20 74 68 69 73 20 69 73 20 74 68 65 20 75 >: this is the u
8050: 6e 69 71 75 65 20 72 6f 74 61 74 69 6f 6e 20 61 nique rotation a
8060: 6c 6c 6f 77 65 64 20 6f 6e 20 61 20 70 75 72 65 llowed on a pure
8070: 6c 79 20 32 44 20 70 6c 61 6e 65 2e 3c 2f 74 64 ly 2D plane.</td
8080: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
8090: 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 58 52 6f <b>ATM_CreateXRo
80a0: 6c 6c 20 28 20 64 6f 75 62 6c 65 20 61 6e 67 6c ll ( double angl
80b0: 65 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 e ) : BLOB AT-ma
80c0: 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 trix</b></td><td
80d0: 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 >Will return an
80e0: 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d Affine Transform
80f0: 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 69 6e 69 ation Matrix ini
8100: 74 69 61 6c 69 7a 65 64 20 61 73 20 52 6f 74 61 tialized as Rota
8110: 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 65 20 tion around the
8120: 58 20 61 78 69 73 2e 3c 62 72 3e 0d 0a 4e 55 4c X axis.<br>..NUL
8130: 4c 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f L if any error o
8140: 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 ccurs or on inva
8150: 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 2f lid arguments.</
8160: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
8170: 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 59 d><b>ATM_CreateY
8180: 52 6f 6c 6c 20 28 20 64 6f 75 62 6c 65 20 61 6e Roll ( double an
8190: 67 6c 65 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d gle ) : BLOB AT-
81a0: 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c matrix</b></td><
81b0: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 td>Will return a
81c0: 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f n Affine Transfo
81d0: 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 69 rmation Matrix i
81e0: 6e 69 74 69 61 6c 69 7a 65 64 20 61 73 20 52 6f nitialized as Ro
81f0: 74 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 tation around th
8200: 65 20 59 20 61 78 69 73 2e 3c 62 72 3e 0d 0a 4e e Y axis.<br>..N
8210: 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 6f 72 ULL if any error
8220: 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 6e occurs or on in
8230: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e valid arguments.
8240: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
8250: 3c 74 68 20 63 6f 6c 73 70 61 6e 3d 22 32 22 20 <th colspan="2"
8260: 62 67 63 6f 6c 6f 72 3d 22 23 46 30 45 36 38 43 bgcolor="#F0E68C
8270: 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 " align="center"
8280: 3e 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 73 >SQL functions s
8290: 75 70 70 6f 72 74 69 6e 67 20 63 68 61 69 6e 69 upporting chaini
82a0: 6e 67 20 74 77 6f 20 41 66 66 69 6e 65 20 54 72 ng two Affine Tr
82b0: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 ansformation Mat
82c0: 72 69 63 65 73 3c 2f 74 68 3e 3c 2f 74 72 3e 0d rices</th></tr>.
82d0: 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f .<tr><td><b>ATM_
82e0: 54 72 61 6e 73 6c 61 74 65 20 28 20 64 6f 75 62 Translate ( doub
82f0: 6c 65 20 74 78 20 2c 20 64 6f 75 62 6c 65 20 74 le tx , double t
8300: 79 20 2c 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 y , BLOB AT-matr
8310: 69 78 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d ix ) : BLOB AT-m
8320: 61 74 72 69 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c atrix</b><br>..<
8330: 62 3e 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 20 b>ATM_Translate
8340: 28 20 64 6f 75 62 6c 65 20 74 78 20 2c 20 64 6f ( double tx , do
8350: 75 62 6c 65 20 74 79 20 2c 20 64 6f 75 62 6c 65 uble ty , double
8360: 20 74 7a 20 2c 20 42 4c 4f 42 20 41 54 2d 6d 61 tz , BLOB AT-ma
8370: 74 72 69 78 20 29 20 3a 20 42 4c 4f 42 20 41 54 trix ) : BLOB AT
8380: 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e -matrix</b></td>
8390: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 <td>Will return
83a0: 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 an Affine Transf
83b0: 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 ormation Matrix
83c0: 62 79 20 63 68 61 69 6e 69 6e 67 20 72 65 73 70 by chaining resp
83d0: 65 63 74 69 76 65 6c 79 20 61 20 32 44 20 6f 72 ectively a 2D or
83e0: 20 33 44 20 54 72 61 6e 73 6c 61 74 65 20 61 6e 3D Translate an
83f0: 64 20 61 6e 6f 74 68 65 72 20 41 66 66 69 6e 65 d another Affine
8400: 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e Transformation.
8410: 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e <br>..NULL if an
8420: 79 20 65 72 72 6f 72 20 6f 63 63 75 72 73 20 6f y error occurs o
8430: 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 r on invalid arg
8440: 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 uments.</td></tr
8450: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 >..<tr><td><b>AT
8460: 4d 5f 53 63 61 6c 65 20 28 20 64 6f 75 62 6c 65 M_Scale ( double
8470: 20 73 78 20 2c 20 64 6f 75 62 6c 65 20 73 79 20 sx , double sy
8480: 2c 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 , BLOB AT-matrix
8490: 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ) : BLOB AT-mat
84a0: 72 69 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e rix</b><br>..<b>
84b0: 41 54 4d 5f 53 63 61 6c 65 20 28 20 64 6f 75 62 ATM_Scale ( doub
84c0: 6c 65 20 73 78 20 2c 20 64 6f 75 62 6c 65 20 73 le sx , double s
84d0: 79 20 2c 20 64 6f 75 62 6c 65 20 73 7a 20 2c 20 y , double sz ,
84e0: 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 29 BLOB AT-matrix )
84f0: 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 : BLOB AT-matri
8500: 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 x</b></td><td>Wi
8510: 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 41 66 66 ll return an Aff
8520: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
8530: 6f 6e 20 4d 61 74 72 69 78 20 62 79 20 63 68 61 on Matrix by cha
8540: 69 6e 69 6e 67 20 72 65 73 70 65 63 74 69 76 65 ining respective
8550: 6c 79 20 61 20 32 44 20 6f 72 20 33 44 20 53 63 ly a 2D or 3D Sc
8560: 61 6c 65 20 61 6e 64 20 61 6e 6f 74 68 65 72 20 ale and another
8570: 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d Affine Transform
8580: 61 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c ation.<br>..NULL
8590: 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 if any error oc
85a0: 63 75 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c curs or on inval
85b0: 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 2e 3c 2f id arguments..</
85c0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
85d0: 64 3e 3c 62 3e 41 54 4d 5f 52 6f 74 61 74 65 20 d><b>ATM_Rotate
85e0: 28 20 64 6f 75 62 6c 65 20 61 6e 67 6c 65 20 2c ( double angle ,
85f0: 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 BLOB AT-matrix
8600: 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 ) : BLOB AT-matr
8610: 69 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 ix</b><br>..<b>A
8620: 54 4d 5f 5a 52 6f 6c 6c 20 28 20 64 6f 75 62 6c TM_ZRoll ( doubl
8630: 65 20 61 6e 67 6c 65 20 2c 20 42 4c 4f 42 20 41 e angle , BLOB A
8640: 54 2d 6d 61 74 72 69 78 20 29 20 3a 20 42 4c 4f T-matrix ) : BLO
8650: 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c B AT-matrix</b><
8660: 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 /td><td>Will ret
8670: 75 72 6e 20 61 6e 20 41 66 66 69 6e 65 20 54 72 urn an Affine Tr
8680: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 ansformation Mat
8690: 72 69 78 20 62 79 20 63 68 61 69 6e 69 6e 67 20 rix by chaining
86a0: 61 20 52 6f 74 61 74 69 6f 6e 20 61 72 6f 75 6e a Rotation aroun
86b0: 64 20 74 68 65 20 5a 20 61 78 69 73 20 61 6e 64 d the Z axis and
86c0: 20 61 6e 6f 74 68 65 72 20 41 66 66 69 6e 65 20 another Affine
86d0: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e 3c Transformation.<
86e0: 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 br>..NULL if any
86f0: 20 65 72 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 error occurs or
8700: 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 on invalid argu
8710: 6d 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e ments.</td></tr>
8720: 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d ..<tr><td><b>ATM
8730: 5f 58 52 6f 6c 6c 20 28 20 64 6f 75 62 6c 65 20 _XRoll ( double
8740: 61 6e 67 6c 65 20 29 20 3a 20 42 4c 4f 42 20 41 angle ) : BLOB A
8750: 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 T-matrix</b></td
8760: 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e ><td>Will return
8770: 20 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 an Affine Trans
8780: 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 formation Matrix
8790: 20 62 79 20 63 68 61 69 6e 69 6e 67 20 61 20 52 by chaining a R
87a0: 6f 74 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 otation around t
87b0: 68 65 20 58 20 61 78 69 73 20 61 6e 64 20 61 6e he X axis and an
87c0: 6f 74 68 65 72 20 41 66 66 69 6e 65 20 54 72 61 other Affine Tra
87d0: 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 3e nsformation.<br>
87e0: 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 ..NULL if any er
87f0: 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e ror occurs or on
8800: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e invalid argumen
8810: 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c ts.</td></tr>..<
8820: 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 59 52 tr><td><b>ATM_YR
8830: 6f 6c 6c 20 28 20 64 6f 75 62 6c 65 20 61 6e 67 oll ( double ang
8840: 6c 65 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d le ) : BLOB AT-m
8850: 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 atrix</b></td><t
8860: 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e d>Will return an
8870: 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 Affine Transfor
8880: 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 62 79 mation Matrix by
8890: 20 63 68 61 69 6e 69 6e 67 20 61 20 52 6f 74 61 chaining a Rota
88a0: 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 65 20 tion around the
88b0: 59 20 61 78 69 73 20 61 6e 64 20 61 6e 6f 74 68 Y axis and anoth
88c0: 65 72 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 er Affine Transf
88d0: 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 4e ormation.<br>..N
88e0: 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 6f 72 ULL if any error
88f0: 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 6e occurs or on in
8900: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e valid arguments.
8910: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
8920: 3c 74 64 3e 3c 2f 74 64 3e 3c 74 64 3e 0d 0a 3c <td></td><td>..<
8930: 75 3e 4e 6f 74 65 3c 2f 75 3e 3a 20 61 6c 6c 20 u>Note</u>: all
8940: 74 68 65 20 61 62 6f 76 65 20 66 75 6e 63 74 69 the above functi
8950: 6f 6e 73 20 73 69 6d 70 6c 79 20 61 72 65 20 63 ons simply are c
8960: 6f 6e 76 65 6e 69 65 6e 63 65 20 6d 65 74 68 6f onvenience metho
8970: 64 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 61 ds intended to a
8980: 76 6f 69 64 20 61 6e 79 20 6e 65 65 64 20 74 6f void any need to
8990: 20 72 65 70 65 61 74 65 64 6c 79 20 63 61 6c 6c repeatedly call
89a0: 20 3c 62 3e 41 54 4d 5f 4d 75 6c 74 69 70 6c 79 <b>ATM_Multiply
89b0: 28 29 3c 2f 62 3e 2e 0d 0a 3c 76 65 72 62 61 74 ()</b>...<verbat
89c0: 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 41 54 4d 5f im>..SELECT ATM_
89d0: 4d 75 6c 74 69 70 6c 79 28 41 54 4d 5f 43 72 65 Multiply(ATM_Cre
89e0: 61 74 65 52 6f 74 61 74 65 28 31 35 29 2c 20 0d ateRotate(15), .
89f0: 0a 20 20 20 20 20 20 20 41 54 4d 5f 4d 75 6c 74 . ATM_Mult
8a00: 69 70 6c 79 28 41 54 4d 5f 43 72 65 61 74 65 53 iply(ATM_CreateS
8a10: 63 61 6c 65 28 31 2e 31 2c 20 31 2e 32 2c 20 31 cale(1.1, 1.2, 1
8a20: 2e 33 29 2c 20 0d 0a 20 20 20 20 20 20 20 20 20 .3), ..
8a30: 20 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f 43 ATM_C
8a40: 72 65 61 74 65 54 72 61 6e 73 6c 61 74 65 28 31 reateTranslate(1
8a50: 30 2c 20 32 30 2c 20 33 30 29 29 29 3b 0d 0a 0d 0, 20, 30)));...
8a60: 0a 53 45 4c 45 43 54 20 41 54 4d 5f 52 6f 74 61 .SELECT ATM_Rota
8a70: 74 65 28 31 35 2c 20 0d 0a 20 20 20 20 20 20 20 te(15, ..
8a80: 20 20 20 41 54 4d 5f 53 63 61 6c 65 28 31 2e 31 ATM_Scale(1.1
8a90: 2c 20 31 2e 32 2c 20 31 2e 33 2c 0d 0a 20 20 20 , 1.2, 1.3,..
8aa0: 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f 43 72 ATM_Cr
8ab0: 65 61 74 65 54 72 61 6e 73 6c 61 74 65 28 31 30 eateTranslate(10
8ac0: 2c 20 32 30 2c 20 33 30 29 29 29 3b 0d 0a 0d 0a , 20, 30)));....
8ad0: 53 45 4c 45 43 54 20 41 54 4d 5f 52 6f 74 61 74 SELECT ATM_Rotat
8ae0: 65 28 31 35 2c 20 0d 0a 20 20 20 20 20 20 20 20 e(15, ..
8af0: 20 20 41 54 4d 5f 53 63 61 6c 65 28 31 2e 31 2c ATM_Scale(1.1,
8b00: 20 31 2e 32 2c 20 31 2e 33 2c 0d 0a 20 20 20 20 1.2, 1.3,..
8b10: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 54 72 61 ATM_Tra
8b20: 6e 73 6c 61 74 65 28 31 30 2c 20 32 30 2c 20 33 nslate(10, 20, 3
8b30: 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 0,..
8b40: 20 20 20 20 41 54 4d 5f 43 72 65 61 74 65 28 29 ATM_Create()
8b50: 29 29 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d )));..</verbatim
8b60: 3e 0d 0a 41 6c 6c 20 74 68 72 65 65 20 73 74 61 >..All three sta
8b70: 74 65 6d 65 6e 74 73 20 77 69 6c 6c 20 72 65 74 tements will ret
8b80: 75 72 6e 20 65 78 61 63 74 6c 79 20 74 68 65 20 urn exactly the
8b90: 73 61 6d 65 20 69 64 65 6e 74 69 63 61 6c 20 41 same identical A
8ba0: 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 ffine Transforma
8bb0: 74 69 6f 6e 20 4d 61 74 72 69 78 3b 20 61 6e 79 tion Matrix; any
8bc0: 77 61 79 20 74 68 65 20 73 65 63 6f 6e 64 20 6e way the second n
8bd0: 6f 74 61 74 69 6f 6e 20 69 73 20 6f 62 76 69 6f otation is obvio
8be0: 75 73 6c 79 20 6d 6f 73 74 20 63 6f 6e 63 69 73 usly most concis
8bf0: 65 20 61 6e 64 20 6d 6f 72 65 20 70 72 61 63 74 e and more pract
8c00: 69 63 61 6c 20 74 68 61 6e 20 74 68 65 20 6f 74 ical than the ot
8c10: 68 65 72 20 74 77 6f 2e 0d 0a 3c 2f 74 64 3e 3c her two...</td><
8c20: 2f 74 72 3e 0d 0a 3c 74 61 62 6c 65 3e 3c 62 72 /tr>..<table><br
8c30: 3e 0d 0a 3c 68 72 3e 3c 62 72 3e 0d 0a 3c 61 20 >..<hr><br>..<a
8c40: 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 href="https://ww
8c50: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f w.gaia-gis.it/fo
8c60: 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 61 6c 69 ssil/libspatiali
8c70: 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d 34 2e 32 te/wiki?name=4.2
8c80: 2e 30 2d 64 6f 63 22 3e 62 61 63 6b 3c 2f 61 3e .0-doc">back</a>
8c90: 0a 5a 20 35 35 36 32 30 63 32 38 39 64 66 33 39 .Z 55620c289df39
8ca0: 33 64 63 61 39 64 66 32 66 30 31 34 36 61 65 36 3dca9df2f0146ae6
8cb0: 34 30 36 0a 406.