Wiki page
[Affine Transform] by
sandro
2015-05-02 21:23:00.
0000: 44 20 32 30 31 35 2d 30 35 2d 30 32 54 32 31 3a D 2015-05-02T21:
0010: 32 33 3a 30 30 2e 38 38 36 0a 4c 20 41 66 66 69 23:00.886.L Affi
0020: 6e 65 5c 73 54 72 61 6e 73 66 6f 72 6d 0a 50 20 ne\sTransform.P
0030: 64 35 38 66 62 33 61 38 30 32 65 30 31 65 66 63 d58fb3a802e01efc
0040: 33 38 63 65 66 37 64 39 37 38 62 65 36 33 61 34 38cef7d978be63a4
0050: 62 33 33 36 31 61 36 33 0a 55 20 73 61 6e 64 72 b3361a63.U sandr
0060: 6f 0a 57 20 32 39 32 39 37 0a 3c 61 20 68 72 65 o.W 29297.<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 20 68 6f 77 20 74 6f 20 6d 75 e show how to mu
6050: 6c 74 69 70 6c 79 20 74 77 6f 20 3c 62 3e 34 20 ltiply two <b>4
6060: 78 20 34 3c 2f 62 3e 20 6d 61 74 72 69 63 65 73 x 4</b> matrices
6070: 2e 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 .<br>..<table ce
6080: 6c 6c 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 llspacing="4" ce
6090: 6c 6c 70 61 64 64 69 6e 67 3d 22 34 22 3e 0d 0a llpadding="4">..
60a0: 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 74 61 62 6c 65 <tr><td>..<table
60b0: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 2f 3c 2f 74 64 >..<tr><td>/</td
60c0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
60d0: 65 72 22 3e 61 3c 73 75 62 3e 31 31 3c 2f 73 75 er">a<sub>11</su
60e0: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
60f0: 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e ="center">a<sub>
6100: 31 32 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 12</sub></td><td
6110: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6120: 61 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 3c 2f a<sub>13</sub></
6130: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6140: 6e 74 65 72 22 3e 61 3c 73 75 62 3e 31 34 3c 2f nter">a<sub>14</
6150: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f sub></td><td>\</
6160: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
6170: 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>|</td><td alig
6180: 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 n="center">a<sub
6190: 3e 32 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >21</sub></td><t
61a0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
61b0: 3e 61 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e 3c >a<sub>22</sub><
61c0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
61d0: 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 32 33 3c enter">a<sub>23<
61e0: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c /sub></td><td al
61f0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 ign="center">a<s
6200: 75 62 3e 32 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e ub>24</sub></td>
6210: 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>|</td></tr>.
6220: 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c .<tr><td>|</td><
6230: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6240: 22 3e 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e ">a<sub>31</sub>
6250: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6260: 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 33 32 center">a<sub>32
6270: 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 </sub></td><td a
6280: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c lign="center">a<
6290: 73 75 62 3e 33 33 3c 2f 73 75 62 3e 3c 2f 74 64 sub>33</sub></td
62a0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
62b0: 65 72 22 3e 61 3c 73 75 62 3e 33 34 3c 2f 73 75 er">a<sub>34</su
62c0: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 b></td><td>|</td
62d0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
62e0: 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d \</td><td align=
62f0: 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 34 "center">a<sub>4
6300: 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 1</sub></td><td
6310: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 align="center">a
6320: 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 3c 2f 74 <sub>42</sub></t
6330: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
6340: 74 65 72 22 3e 61 3c 73 75 62 3e 34 33 3c 2f 73 ter">a<sub>43</s
6350: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
6360: 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 n="center">a<sub
6370: 3e 34 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >44</sub></td><t
6380: 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>/</td></tr>..<
6390: 2f 74 61 62 6c 65 3e 0d 0a 3c 2f 74 64 3e 3c 74 /table>..</td><t
63a0: 64 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 d valign="middle
63b0: 22 3e 2a 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 0d 0a ">*</td>..<td>..
63c0: 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 64 <table>..<tr><td
63d0: 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >/</td><td align
63e0: 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e ="center">b<sub>
63f0: 31 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 11</sub></td><td
6400: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6410: 62 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 3c 2f b<sub>12</sub></
6420: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6430: 6e 74 65 72 22 3e 62 3c 73 75 62 3e 31 33 3c 2f nter">b<sub>13</
6440: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 sub></td><td ali
6450: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 gn="center">b<su
6460: 62 3e 31 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>14</sub></td><
6470: 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>\</td></tr>..
6480: 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 <tr><td>|</td><t
6490: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
64a0: 3e 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e 3c >b<sub>21</sub><
64b0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
64c0: 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 32 32 3c enter">b<sub>22<
64d0: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c /sub></td><td al
64e0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 ign="center">b<s
64f0: 75 62 3e 32 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e ub>23</sub></td>
6500: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6510: 72 22 3e 62 3c 73 75 62 3e 32 34 3c 2f 73 75 62 r">b<sub>24</sub
6520: 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ></td><td>|</td>
6530: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c </tr>..<tr><td>|
6540: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6550: 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 33 31 center">b<sub>31
6560: 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 </sub></td><td a
6570: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c lign="center">b<
6580: 73 75 62 3e 33 32 3c 2f 73 75 62 3e 3c 2f 74 64 sub>32</sub></td
6590: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
65a0: 65 72 22 3e 62 3c 73 75 62 3e 33 33 3c 2f 73 75 er">b<sub>33</su
65b0: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
65c0: 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e ="center">b<sub>
65d0: 33 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 34</sub></td><td
65e0: 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >|</td></tr>..<t
65f0: 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 r><td>\</td><td
6600: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 align="center">b
6610: 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 3c 2f 74 <sub>41</sub></t
6620: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
6630: 74 65 72 22 3e 62 3c 73 75 62 3e 34 32 3c 2f 73 ter">b<sub>42</s
6640: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
6650: 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 n="center">b<sub
6660: 3e 34 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >43</sub></td><t
6670: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
6680: 3e 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 3c >b<sub>44</sub><
6690: 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f /td><td>/</td></
66a0: 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c tr>..</table>..<
66b0: 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 20 76 /td>..</td><td v
66c0: 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 3d align="middle">=
66d0: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 0d 0a 3c 74 61 </td>..<td>..<ta
66e0: 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 2f 3c ble>..<tr><td>/<
66f0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
6700: 65 6e 74 65 72 22 3e 0d 0a 28 61 3c 73 75 62 3e enter">..(a<sub>
6710: 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 11</sub>*b<sub>1
6720: 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 1</sub> + ..a<su
6730: 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>12</sub>*b<sub
6740: 3e 32 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >21</sub> + ..a<
6750: 73 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>13</sub>*b<s
6760: 75 62 3e 33 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a ub>31</sub> + ..
6770: 61 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 a<sub>14</sub>*b
6780: 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 29 3c 2f <sub>41</sub>)</
6790: 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e td>..<td>(a<sub>
67a0: 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 11</sub>*b<sub>1
67b0: 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 2</sub> + ..a<su
67c0: 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>12</sub>*b<sub
67d0: 3e 32 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >22</sub> + ..a<
67e0: 73 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>13</sub>*b<s
67f0: 75 62 3e 33 32 3c 2f 73 75 62 3e 20 2b 0d 0a 61 ub>32</sub> +..a
6800: 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 3c <sub>14</sub>*b<
6810: 73 75 62 3e 34 32 3c 2f 73 75 62 3e 29 3c 2f 74 sub>42</sub>)</t
6820: 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 31 d>..<td>(a<sub>1
6830: 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 33 1</sub>*b<sub>13
6840: 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 </sub> + ..a<sub
6850: 3e 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >12</sub>*b<sub>
6860: 32 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 23</sub> + ..a<s
6870: 75 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>13</sub>*b<su
6880: 62 3e 33 33 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c b>33</sub> +..a<
6890: 73 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 3c 73 sub>14</sub>*b<s
68a0: 75 62 3e 34 33 3c 2f 73 75 62 3e 29 3c 2f 74 64 ub>43</sub>)</td
68b0: 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 31 31 >..<td>(a<sub>11
68c0: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 34 3c </sub>*b<sub>14<
68d0: 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e /sub> + ..a<sub>
68e0: 31 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 12</sub>*b<sub>2
68f0: 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 4</sub> + ..a<su
6900: 62 3e 31 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>13</sub>*b<sub
6910: 3e 33 34 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 >34</sub> +..a<s
6920: 75 62 3e 31 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>14</sub>*b<su
6930: 62 3e 34 34 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e b>44</sub>)</td>
6940: 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>\</td></tr>.
6950: 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c .<tr><td>|</td><
6960: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6970: 22 3e 0d 0a 28 61 3c 73 75 62 3e 32 31 3c 2f 73 ">..(a<sub>21</s
6980: 75 62 3e 2a 62 3c 73 75 62 3e 31 31 3c 2f 73 75 ub>*b<sub>11</su
6990: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c b> + ..a<sub>22<
69a0: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 31 3c 2f /sub>*b<sub>21</
69b0: 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 sub> + ..a<sub>2
69c0: 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 31 3</sub>*b<sub>31
69d0: 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 </sub> + ..a<sub
69e0: 3e 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >24</sub>*b<sub>
69f0: 34 31 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 41</sub>)</td>..
6a00: 3c 74 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f 73 <td>(a<sub>21</s
6a10: 75 62 3e 2a 62 3c 73 75 62 3e 31 32 3c 2f 73 75 ub>*b<sub>12</su
6a20: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c b> + ..a<sub>22<
6a30: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 32 3c 2f /sub>*b<sub>22</
6a40: 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 sub> + ..a<sub>2
6a50: 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 32 3</sub>*b<sub>32
6a60: 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e </sub> +..a<sub>
6a70: 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 24</sub>*b<sub>4
6a80: 32 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 2</sub>)</td>..<
6a90: 74 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f 73 75 td>(a<sub>21</su
6aa0: 62 3e 2a 62 3c 73 75 62 3e 31 33 3c 2f 73 75 62 b>*b<sub>13</sub
6ab0: 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c 2f > + ..a<sub>22</
6ac0: 73 75 62 3e 2a 62 3c 73 75 62 3e 32 33 3c 2f 73 sub>*b<sub>23</s
6ad0: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 33 ub> + ..a<sub>23
6ae0: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 33 3c </sub>*b<sub>33<
6af0: 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 32 /sub> +..a<sub>2
6b00: 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 33 4</sub>*b<sub>43
6b10: 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 </sub>)</td>..<t
6b20: 64 3e 28 61 3c 73 75 62 3e 32 31 3c 2f 73 75 62 d>(a<sub>21</sub
6b30: 3e 2a 62 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e >*b<sub>14</sub>
6b40: 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 32 3c 2f 73 + ..a<sub>22</s
6b50: 75 62 3e 2a 62 3c 73 75 62 3e 32 34 3c 2f 73 75 ub>*b<sub>24</su
6b60: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 32 33 3c b> + ..a<sub>23<
6b70: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 34 3c 2f /sub>*b<sub>34</
6b80: 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 32 34 sub> +..a<sub>24
6b90: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 34 3c </sub>*b<sub>44<
6ba0: 2f 73 75 62 3e 29 3c 2f 74 64 3e 3c 74 64 3e 7c /sub>)</td><td>|
6bb0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
6bc0: 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c <td>|</td><td al
6bd0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0d 0a 28 ign="center">..(
6be0: 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 a<sub>31</sub>*b
6bf0: 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 20 2b 20 <sub>11</sub> +
6c00: 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e ..a<sub>32</sub>
6c10: 2a 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e 20 *b<sub>21</sub>
6c20: 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 + ..a<sub>33</su
6c30: 62 3e 2a 62 3c 73 75 62 3e 33 31 3c 2f 73 75 62 b>*b<sub>31</sub
6c40: 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f > + ..a<sub>34</
6c50: 73 75 62 3e 2a 62 3c 73 75 62 3e 34 31 3c 2f 73 sub>*b<sub>41</s
6c60: 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 ub>)</td>..<td>(
6c70: 61 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 a<sub>31</sub>*b
6c80: 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 20 2b 20 <sub>12</sub> +
6c90: 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e ..a<sub>32</sub>
6ca0: 2a 62 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e 20 *b<sub>22</sub>
6cb0: 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 + ..a<sub>33</su
6cc0: 62 3e 2a 62 3c 73 75 62 3e 33 32 3c 2f 73 75 62 b>*b<sub>32</sub
6cd0: 3e 20 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f 73 > +..a<sub>34</s
6ce0: 75 62 3e 2a 62 3c 73 75 62 3e 34 32 3c 2f 73 75 ub>*b<sub>42</su
6cf0: 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 b>)</td>..<td>(a
6d00: 3c 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 3c <sub>31</sub>*b<
6d10: 73 75 62 3e 31 33 3c 2f 73 75 62 3e 20 2b 20 0d sub>13</sub> + .
6d20: 0a 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e 2a .a<sub>32</sub>*
6d30: 62 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 20 2b b<sub>23</sub> +
6d40: 20 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 62 ..a<sub>33</sub
6d50: 3e 2a 62 3c 73 75 62 3e 33 33 3c 2f 73 75 62 3e >*b<sub>33</sub>
6d60: 20 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f 73 75 +..a<sub>34</su
6d70: 62 3e 2a 62 3c 73 75 62 3e 34 33 3c 2f 73 75 62 b>*b<sub>43</sub
6d80: 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c >)</td>..<td>(a<
6d90: 73 75 62 3e 33 31 3c 2f 73 75 62 3e 2a 62 3c 73 sub>31</sub>*b<s
6da0: 75 62 3e 31 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a ub>14</sub> + ..
6db0: 61 3c 73 75 62 3e 33 32 3c 2f 73 75 62 3e 2a 62 a<sub>32</sub>*b
6dc0: 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 20 2b 20 <sub>24</sub> +
6dd0: 0d 0a 61 3c 73 75 62 3e 33 33 3c 2f 73 75 62 3e ..a<sub>33</sub>
6de0: 2a 62 3c 73 75 62 3e 33 34 3c 2f 73 75 62 3e 20 *b<sub>34</sub>
6df0: 2b 0d 0a 61 3c 73 75 62 3e 33 34 3c 2f 73 75 62 +..a<sub>34</sub
6e00: 3e 2a 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e >*b<sub>44</sub>
6e10: 29 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e )</td><td>|</td>
6e20: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c </tr>..<tr><td>\
6e30: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6e40: 63 65 6e 74 65 72 22 3e 0d 0a 28 61 3c 73 75 62 center">..(a<sub
6e50: 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >41</sub>*b<sub>
6e60: 31 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 11</sub> + ..a<s
6e70: 75 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>42</sub>*b<su
6e80: 62 3e 32 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>21</sub> + ..a
6e90: 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c <sub>43</sub>*b<
6ea0: 73 75 62 3e 33 31 3c 2f 73 75 62 3e 20 2b 20 0d sub>31</sub> + .
6eb0: 0a 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a .a<sub>44</sub>*
6ec0: 62 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 29 3c b<sub>41</sub>)<
6ed0: 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 /td>..<td>(a<sub
6ee0: 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >41</sub>*b<sub>
6ef0: 31 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 12</sub> + ..a<s
6f00: 75 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>42</sub>*b<su
6f10: 62 3e 32 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>22</sub> + ..a
6f20: 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c <sub>43</sub>*b<
6f30: 73 75 62 3e 33 32 3c 2f 73 75 62 3e 20 2b 0d 0a sub>32</sub> +..
6f40: 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a 62 a<sub>44</sub>*b
6f50: 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 29 3c 2f <sub>42</sub>)</
6f60: 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e td>..<td>(a<sub>
6f70: 34 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 41</sub>*b<sub>1
6f80: 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 3</sub> + ..a<su
6f90: 62 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>42</sub>*b<sub
6fa0: 3e 32 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >23</sub> + ..a<
6fb0: 73 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>43</sub>*b<s
6fc0: 75 62 3e 33 33 3c 2f 73 75 62 3e 20 2b 0d 0a 61 ub>33</sub> +..a
6fd0: 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a 62 3c <sub>44</sub>*b<
6fe0: 73 75 62 3e 34 33 3c 2f 73 75 62 3e 29 3c 2f 74 sub>43</sub>)</t
6ff0: 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 34 d>..<td>(a<sub>4
7000: 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 34 1</sub>*b<sub>14
7010: 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 </sub> + ..a<sub
7020: 3e 34 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >42</sub>*b<sub>
7030: 32 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 24</sub> + ..a<s
7040: 75 62 3e 34 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>43</sub>*b<su
7050: 62 3e 33 34 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c b>34</sub> +..a<
7060: 73 75 62 3e 34 34 3c 2f 73 75 62 3e 2a 62 3c 73 sub>44</sub>*b<s
7070: 75 62 3e 34 34 3c 2f 73 75 62 3e 29 3c 2f 74 64 ub>44</sub>)</td
7080: 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>/</td></tr>
7090: 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 2f 74 64 ..</table>..</td
70a0: 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 0d 0a ></tr></table>..
70b0: 3c 68 33 3e 69 64 65 6e 74 69 74 79 20 6d 61 74 <h3>identity mat
70c0: 72 69 78 3c 2f 68 33 3e 0d 0a 41 6e 20 69 6e 64 rix</h3>..An ind
70d0: 65 6e 74 69 79 20 6d 61 74 72 69 78 20 73 69 6d entiy matrix sim
70e0: 70 6c 79 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 ply corresponds
70f0: 74 6f 20 61 6e 20 61 66 66 69 6e 65 20 74 72 61 to an affine tra
7100: 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 6c 61 63 6b nsformation lack
7110: 69 6e 67 20 61 6e 79 20 61 63 74 75 61 6c 20 65 ing any actual e
7120: 66 66 65 63 74 3a 20 61 74 20 74 68 65 20 65 6e ffect: at the en
7130: 64 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 73 d of the process
7140: 20 74 68 65 20 74 72 61 6e 73 66 6f 72 6d 65 64 the transformed
7150: 20 67 65 6f 6d 65 74 72 79 20 77 69 6c 6c 20 62 geometry will b
7160: 65 20 65 78 61 63 74 6c 79 20 74 68 65 20 73 61 e exactly the sa
7170: 6d 65 20 61 73 20 62 65 66 6f 72 65 2e 3c 62 72 me as before.<br
7180: 3e 0d 0a 4d 6f 72 65 6f 76 65 72 20 61 6e 20 69 >..Moreover an i
7190: 64 65 6e 74 69 74 79 20 6d 61 74 72 69 78 20 70 dentity matrix p
71a0: 6c 61 79 73 20 61 20 73 70 65 63 69 61 6c 20 72 lays a special r
71b0: 6f 6c 65 20 69 6e 20 6d 75 6c 74 69 70 6c 69 63 ole in multiplic
71c0: 61 74 69 6f 6e 3a 20 74 68 65 20 72 65 73 75 6c ation: the resul
71d0: 74 69 6e 67 20 6d 61 74 72 69 78 20 77 69 6c 6c ting matrix will
71e0: 20 61 6c 77 61 79 73 20 62 65 20 65 78 61 63 74 always be exact
71f0: 6c 79 20 74 68 65 20 73 61 6d 65 20 6f 66 20 74 ly the same of t
7200: 68 65 20 6f 74 68 65 72 20 6d 61 74 72 69 78 2e he other matrix.
7210: 3c 62 72 3e 0d 0a 28 3c 69 3e 69 74 27 73 20 6d <br>..(<i>it's m
7220: 6f 72 65 20 6f 72 20 6c 65 73 73 20 74 68 65 20 ore or less the
7230: 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 6d 75 equivalent of mu
7240: 6c 74 69 70 6c 79 69 6e 67 20 65 2e 67 2e 20 3c ltiplying e.g. <
7250: 62 3e 38 2a 31 3d 38 3c 2f 62 3e 20 69 6e 20 6f b>8*1=8</b> in o
7260: 72 64 69 6e 61 72 79 20 6d 75 6c 74 69 70 6c 69 rdinary multipli
7270: 63 61 74 69 6f 6e 3c 2f 69 3e 29 2e 0d 0a 3c 68 cation</i>)...<h
7280: 72 3e 3c 62 72 3e 0d 0a 3c 61 20 68 72 65 66 3d r><br>..<a href=
7290: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
72a0: 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c 2f a-gis.it/fossil/
72b0: 6c 69 62 73 70 61 74 69 61 6c 69 74 65 2f 77 69 libspatialite/wi
72c0: 6b 69 3f 6e 61 6d 65 3d 34 2e 32 2e 30 2d 64 6f ki?name=4.2.0-do
72d0: 63 22 3e 62 61 63 6b 3c 2f 61 3e 0a 5a 20 62 31 c">back</a>.Z b1
72e0: 65 62 38 61 39 37 39 61 36 31 61 39 64 36 39 37 eb8a979a61a9d697
72f0: 36 35 64 39 35 37 64 65 35 38 61 30 35 61 0a 65d957de58a05a.