Wiki page
[Affine Transform] by
sandro
2015-05-12 07:46:11.
0000: 44 20 32 30 31 35 2d 30 35 2d 31 32 54 30 37 3a D 2015-05-12T07:
0010: 34 36 3a 31 31 2e 31 34 30 0a 4c 20 41 66 66 69 46:11.140.L Affi
0020: 6e 65 5c 73 54 72 61 6e 73 66 6f 72 6d 0a 50 20 ne\sTransform.P
0030: 66 63 62 39 33 30 64 64 35 36 63 30 38 39 63 61 fcb930dd56c089ca
0040: 32 31 34 31 61 63 63 66 37 32 31 66 32 31 64 31 2141accf721f21d1
0050: 34 65 39 61 62 38 63 37 0a 55 20 73 61 6e 64 72 4e9ab8c7.U sandr
0060: 6f 0a 57 20 33 37 32 38 31 0a 3c 61 20 68 72 65 o.W 37281.<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 2c 3c 62 72 3e 0d 0a 55 6e 64 65 72 73 74 a>,<br>..Underst
01a0: 61 6e 64 69 6e 67 20 61 6e 64 20 6d 61 73 74 65 anding and maste
01b0: 72 69 6e 67 20 61 6c 6c 20 74 68 65 20 75 6e 64 ring all the und
01c0: 65 72 6c 61 79 69 6e 67 20 6d 61 74 68 65 6d 61 erlaying mathema
01d0: 74 69 63 73 20 63 6f 75 6c 64 20 65 61 73 69 6c tics could easil
01e0: 79 20 62 65 20 61 20 72 61 74 68 65 72 20 64 69 y be a rather di
01f0: 66 66 69 63 75 6c 74 20 74 61 73 6b 2c 20 6d 6f fficult task, mo
0200: 72 65 20 6e 6f 74 61 62 6c 79 20 69 66 20 79 6f re notably if yo
0210: 75 20 68 61 76 65 20 61 62 73 6f 6c 75 74 65 6c u have absolutel
0220: 79 20 6e 6f 20 66 61 6d 69 6c 69 61 72 69 74 79 y no familiarity
0230: 20 77 69 74 68 20 74 68 69 73 20 6b 69 6e 64 20 with this kind
0240: 6f 66 20 6f 70 65 72 61 74 69 6f 6e 73 2e 3c 62 of operations.<b
0250: 72 3e 0d 0a 53 6f 20 77 65 27 6c 6c 20 73 74 61 r>..So we'll sta
0260: 72 74 20 73 6c 6f 77 6c 79 20 61 6e 64 20 73 6d rt slowly and sm
0270: 6f 6f 74 68 6c 79 20 62 79 20 69 6e 74 72 6f 64 oothly by introd
0280: 75 63 69 6e 67 20 66 69 72 73 74 20 61 20 76 65 ucing first a ve
0290: 72 79 20 73 69 6d 70 6c 65 20 70 72 61 63 74 69 ry simple practi
02a0: 63 61 6c 20 65 78 61 6d 70 6c 65 20 62 61 73 65 cal example base
02b0: 64 20 6f 6e 20 6b 69 6e 64 20 6f 66 20 61 20 6a d on kind of a j
02c0: 6f 6b 65 20 61 62 6f 75 74 20 74 68 65 20 67 65 oke about the ge
02d0: 6f 67 72 61 70 68 79 20 6f 66 20 49 74 61 6c 79 ography of Italy
02e0: 20 61 6e 64 20 53 69 63 69 6c 79 2e 0d 0a 3c 68 and Sicily...<h
02f0: 32 3e 46 61 6e 63 79 20 47 65 6f 67 72 61 70 68 2>Fancy Geograph
0300: 79 20 61 6e 64 20 61 6d 75 73 69 6e 67 20 4d 61 y and amusing Ma
0310: 74 68 3c 2f 68 32 3e 0d 0a 3c 74 61 62 6c 65 20 th</h2>..<table
0320: 62 6f 72 64 65 72 3d 22 31 22 20 63 65 6c 6c 73 border="1" cells
0330: 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70 pacing="4" cellp
0340: 61 64 64 69 6e 67 3d 22 38 22 3e 0d 0a 3c 74 72 adding="8">..<tr
0350: 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 50 72 65 66 61 ><td>..<h3>Prefa
0360: 63 65 3c 2f 68 33 3e 0d 0a 4c 6f 6f 6b 20 61 74 ce</h3>..Look at
0370: 20 61 20 6d 61 70 20 6f 66 20 49 74 61 6c 79 3b a map of Italy;
0380: 20 69 74 20 61 70 70 65 61 72 73 20 6f 62 76 69 it appears obvi
0390: 6f 75 73 20 61 74 20 66 69 72 73 74 20 67 6c 61 ous at first gla
03a0: 6e 63 65 20 74 68 61 74 20 53 69 63 69 6c 79 20 nce that Sicily
03b0: 69 73 20 6c 6f 63 61 74 65 64 20 69 6e 20 61 20 is located in a
03c0: 76 65 72 79 20 69 6e 63 6f 6e 76 65 6e 69 65 6e very inconvenien
03d0: 74 20 70 6f 73 69 74 69 6f 6e 3a 0d 0a 3c 6f 6c t position:..<ol
03e0: 3e 0d 0a 3c 6c 69 3e 53 69 63 69 6c 79 20 69 73 >..<li>Sicily is
03f0: 20 70 6c 61 63 65 64 20 74 6f 6f 20 66 61 72 20 placed too far
0400: 53 6f 75 74 68 20 61 6e 64 20 74 6f 6f 20 6d 75 South and too mu
0410: 63 68 20 63 6c 6f 73 65 20 74 6f 20 4e 6f 72 74 ch close to Nort
0420: 68 20 41 66 72 69 63 61 3b 20 74 68 69 73 20 69 h Africa; this i
0430: 6d 70 6c 69 65 73 20 61 6e 20 75 6e 70 6c 65 61 mplies an unplea
0440: 73 61 6e 74 20 74 6f 72 72 69 64 20 73 75 6d 6d sant torrid summ
0450: 65 72 2c 20 61 6e 64 20 74 68 69 73 20 6c 61 74 er, and this lat
0460: 65 72 20 70 6f 73 65 73 20 69 6e 20 74 75 72 6e er poses in turn
0470: 20 6d 61 6e 79 20 73 65 76 65 72 65 20 6c 69 6d many severe lim
0480: 69 74 61 74 69 6f 6e 73 20 74 6f 20 61 67 72 69 itations to agri
0490: 63 75 6c 74 75 72 61 6c 20 61 63 74 69 76 69 74 cultural activit
04a0: 69 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 54 ies.</li>..<li>T
04b0: 68 65 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 he <a href="http
04c0: 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e ://en.wikipedia.
04d0: 6f 72 67 2f 77 69 6b 69 2f 53 74 72 61 69 74 5f org/wiki/Strait_
04e0: 6f 66 5f 4d 65 73 73 69 6e 61 22 3e 53 74 72 61 of_Messina">Stra
04f0: 69 74 20 6f 66 20 4d 65 73 73 69 6e 61 3c 2f 61 it of Messina</a
0500: 3e 20 69 73 20 65 78 61 67 67 65 72 61 74 65 64 > is exaggerated
0510: 6c 79 20 6e 61 72 72 6f 77 2c 20 74 68 75 73 20 ly narrow, thus
0520: 70 6f 73 69 6e 67 20 73 65 76 65 72 65 20 73 61 posing severe sa
0530: 66 65 74 79 20 72 69 73 6b 73 20 20 74 6f 20 74 fety risks to t
0540: 68 65 20 6e 61 76 69 67 61 74 69 6f 6e 20 6f 66 he navigation of
0550: 20 63 61 70 69 74 61 6c 20 73 68 69 70 73 2c 20 capital ships,
0560: 62 69 67 20 63 6f 6e 74 61 69 6e 65 72 20 73 68 big container sh
0570: 69 70 73 2c 20 63 72 75 69 73 65 20 6c 69 6e 65 ips, cruise line
0580: 72 73 20 61 6e 64 20 73 75 70 65 72 74 61 6e 6b rs and supertank
0590: 65 72 73 2e 3c 62 72 3e 0d 0a 45 76 65 6e 20 77 ers.<br>..Even w
05a0: 6f 72 73 74 2c 20 66 72 6f 6d 20 74 69 6d 65 20 orst, from time
05b0: 74 6f 20 74 69 6d 65 20 73 6f 6d 65 20 63 72 61 to time some cra
05c0: 7a 79 20 70 6f 6c 69 74 69 63 69 61 6e 20 73 74 zy politician st
05d0: 61 72 74 73 20 73 74 72 6f 6e 67 6c 79 20 61 64 arts strongly ad
05e0: 76 6f 63 61 74 69 6e 67 20 74 68 65 20 76 65 72 vocating the ver
05f0: 79 20 73 74 75 70 69 64 20 69 64 65 61 20 74 6f y stupid idea to
0600: 20 62 75 69 6c 64 20 61 6e 20 69 6e 63 72 65 64 build an incred
0610: 69 62 6c 79 20 63 6f 73 74 6c 79 20 3c 61 20 68 ibly costly <a h
0620: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 ref="http://en.w
0630: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
0640: 69 2f 53 74 72 61 69 74 5f 6f 66 5f 4d 65 73 73 i/Strait_of_Mess
0650: 69 6e 61 5f 42 72 69 64 67 65 22 3e 62 72 69 64 ina_Bridge">brid
0660: 67 65 20 63 72 6f 73 73 69 6e 67 20 74 68 65 20 ge crossing the
0670: 53 74 72 61 69 74 3c 2f 61 3e 2c 20 63 6f 6d 70 Strait</a>, comp
0680: 6c 65 74 65 6c 79 20 6f 76 65 72 6c 6f 6f 6b 69 letely overlooki
0690: 6e 67 20 74 68 65 20 76 65 72 79 20 68 69 67 68 ng the very high
06a0: 20 73 65 69 73 6d 69 63 20 72 69 73 6b 20 6f 66 seismic risk of
06b0: 20 74 68 69 73 20 64 69 73 74 72 69 63 74 20 61 this district a
06c0: 6e 64 20 70 75 72 70 6f 73 65 6c 79 20 66 6f 72 nd purposely for
06d0: 67 65 74 74 69 6e 67 20 74 6f 20 72 65 6d 65 6d getting to remem
06e0: 62 65 72 20 74 68 61 74 20 69 6e 20 31 39 30 38 ber that in 1908
06f0: 20 62 6f 74 68 20 74 6f 77 6e 73 20 6f 66 20 3c both towns of <
0700: 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 a href="http://e
0710: 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f n.wikipedia.org/
0720: 77 69 6b 69 2f 31 39 30 38 5f 4d 65 73 73 69 6e wiki/1908_Messin
0730: 61 5f 65 61 72 74 68 71 75 61 6b 65 22 3e 4d 65 a_earthquake">Me
0740: 73 73 69 6e 61 20 61 6e 64 20 52 65 67 67 69 6f ssina and Reggio
0750: 20 43 61 6c 61 62 72 69 61 3c 2f 61 3e 20 77 65 Calabria</a> we
0760: 72 65 20 63 6f 6d 70 6c 65 74 65 6c 79 20 64 65 re completely de
0770: 73 74 72 6f 79 65 64 20 62 79 20 61 6e 20 65 61 stroyed by an ea
0780: 72 74 68 71 75 61 6b 65 20 66 6f 6c 6c 6f 77 65 rthquake followe
0790: 64 20 62 79 20 61 20 74 73 75 6e 61 6d 69 2e 3c d by a tsunami.<
07a0: 62 72 3e 0d 0a 4d 6f 72 65 20 74 68 61 6e 20 31 br>..More than 1
07b0: 32 30 2c 30 30 30 20 70 65 6f 70 6c 65 73 20 6c 20,000 peoples l
07c0: 6f 73 74 20 74 68 65 69 72 20 6c 69 76 65 73 2c ost their lives,
07d0: 20 61 6e 64 20 69 74 20 77 61 73 20 6f 6e 65 20 and it was one
07e0: 6f 66 20 74 68 65 20 6d 6f 73 74 20 66 72 69 67 of the most frig
07f0: 68 74 65 6e 69 6e 67 20 6e 61 74 75 72 61 6c 20 htening natural
0800: 64 69 73 61 73 74 65 72 73 20 72 65 67 69 73 74 disasters regist
0810: 65 72 65 64 20 69 6e 20 45 75 72 6f 70 65 20 64 ered in Europe d
0820: 75 72 69 6e 67 20 6d 6f 64 65 72 6e 20 74 69 6d uring modern tim
0830: 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 0d es.</li>..</ol>.
0840: 0a 53 6f 20 77 65 27 6c 6c 20 69 6d 6d 65 64 69 .So we'll immedi
0850: 61 74 65 6c 79 20 73 74 61 72 74 20 61 20 74 68 ately start a th
0860: 65 6f 72 65 74 69 63 61 6c 20 63 61 73 65 20 73 eoretical case s
0870: 74 75 64 79 20 69 6e 74 65 6e 64 65 64 20 74 6f tudy intended to
0880: 20 69 64 65 6e 74 69 66 79 20 61 20 70 6f 73 73 identify a poss
0890: 69 62 6c 65 20 61 6c 74 65 72 6e 61 74 69 76 65 ible alternative
08a0: 20 6c 6f 63 61 74 69 6f 6e 20 66 6f 72 20 53 69 location for Si
08b0: 63 69 6c 79 2e 3c 62 72 3e 0d 0a 49 6e 63 69 64 cily.<br>..Incid
08c0: 65 6e 74 61 6c 6c 79 20 77 65 27 6c 6c 20 75 73 entally we'll us
08d0: 65 20 74 68 65 20 6e 65 77 20 53 51 4c 20 66 75 e the new SQL fu
08e0: 6e 63 74 69 6f 6e 73 20 62 61 73 65 64 20 6f 6e nctions based on
08f0: 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 Affine Transfor
0900: 6d 61 74 69 6f 6e 73 20 66 6f 72 20 74 68 69 73 mations for this
0910: 20 74 61 73 6b 2e 3c 62 72 3e 0d 0a 4c 65 74 27 task.<br>..Let'
0920: 73 20 67 6f 20 6f 6e 2e 20 20 0d 0a 3c 2f 74 64 s go on. ..</td
0930: 3e 3c 74 64 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d ><td>..<img src=
0940: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
0950: 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 a-gis.it/gaia-si
0960: 6e 73 2f 61 66 66 69 6e 65 2d 70 69 63 73 2f 73 ns/affine-pics/s
0970: 69 63 69 6c 79 5f 30 2e 70 6e 67 22 20 61 6c 74 icily_0.png" alt
0980: 3d 22 73 69 63 69 6c 79 2d 30 22 20 62 6f 72 64 ="sicily-0" bord
0990: 65 72 3d 22 31 22 3e 0d 0a 3c 2f 74 64 3e 3c 2f er="1">..</td></
09a0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c tr>..<tr><td>..<
09b0: 68 33 3e 53 74 65 70 20 23 31 3a 20 74 72 61 6e h3>Step #1: tran
09c0: 73 6c 61 74 69 6e 67 20 53 69 63 69 6c 79 20 69 slating Sicily i
09d0: 6e 74 6f 20 61 20 6d 6f 72 65 20 63 6f 6e 76 65 nto a more conve
09e0: 6e 69 65 6e 74 20 70 6f 73 69 74 69 6f 6e 3c 2f nient position</
09f0: 68 33 3e 0d 0a 54 68 65 72 65 20 69 73 20 70 6c h3>..There is pl
0a00: 65 6e 74 79 20 6f 66 20 66 72 65 65 20 72 6f 6f enty of free roo
0a10: 6d 20 69 6e 20 74 68 65 20 4c 6f 77 65 72 20 54 m in the Lower T
0a20: 79 72 72 68 65 6e 69 61 6e 20 53 65 61 2c 20 73 yrrhenian Sea, s
0a30: 6f 20 77 65 27 6c 6c 20 73 74 61 72 74 20 62 79 o we'll start by
0a40: 20 61 70 70 6c 79 69 6e 67 20 61 20 3c 61 20 68 applying a <a h
0a50: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 ref="http://en.w
0a60: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
0a70: 69 2f 54 72 61 6e 73 6c 61 74 69 6f 6e 5f 25 32 i/Translation_%2
0a80: 38 67 65 6f 6d 65 74 72 79 25 32 39 22 3e 74 72 8geometry%29">tr
0a90: 61 6e 73 6c 61 74 69 6f 6e 3c 2f 61 3e 20 74 6f anslation</a> to
0aa0: 20 53 69 63 69 6c 79 3a 20 74 68 69 73 20 70 72 Sicily: this pr
0ab0: 61 63 74 69 63 61 6c 6c 79 20 6d 65 61 6e 73 20 actically means
0ac0: 61 64 64 69 6e 67 20 28 6f 72 20 73 75 62 74 72 adding (or subtr
0ad0: 61 63 74 69 6e 67 29 20 61 20 63 6f 6e 73 74 61 acting) a consta
0ae0: 6e 74 20 76 61 6c 75 65 20 74 6f 20 74 68 65 20 nt value to the
0af0: 63 6f 6f 72 64 69 6e 61 74 65 73 20 6f 6e 20 62 coordinates on b
0b00: 6f 74 68 20 3c 62 3e 78 3c 2f 62 3e 20 61 6e 64 oth <b>x</b> and
0b10: 20 3c 62 3e 79 3c 2f 62 3e 20 61 78 65 73 2e 3c <b>y</b> axes.<
0b20: 62 72 3e 0d 0a 41 66 74 65 72 20 61 20 76 65 72 br>..After a ver
0b30: 79 20 71 75 69 63 6b 20 65 78 61 6d 69 6e 61 74 y quick examinat
0b40: 69 6f 6e 20 6d 6f 76 69 6e 67 20 53 69 63 69 6c ion moving Sicil
0b50: 79 20 3c 62 3e 31 35 30 20 6b 6d 3c 2f 62 3e 20 y <b>150 km</b>
0b60: 28 69 2e 65 2e 20 3c 62 3e 31 35 30 2c 30 30 30 (i.e. <b>150,000
0b70: 20 6d 3c 2f 62 3e 29 20 77 65 73 74 77 61 72 64 m</b>) westward
0b80: 20 61 6e 64 20 3c 62 3e 31 35 30 20 6b 6d 3c 2f and <b>150 km</
0b90: 62 3e 20 6e 6f 72 74 68 77 61 72 64 20 73 65 65 b> northward see
0ba0: 6d 73 20 74 6f 20 62 65 20 61 6e 20 61 62 73 6f ms to be an abso
0bb0: 6c 75 74 65 6c 79 20 72 65 61 73 6f 6e 61 62 6c lutely reasonabl
0bc0: 65 20 63 68 6f 69 63 65 2e 3c 62 72 3e 0d 0a 53 e choice.<br>..S
0bd0: 6f 20 75 73 69 6e 67 20 74 68 65 20 41 66 66 69 o using the Affi
0be0: 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne Transformatio
0bf0: 6e 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 n SQL functions
0c00: 77 65 27 6c 6c 20 64 75 6c 79 20 65 78 65 63 75 we'll duly execu
0c10: 74 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 te the following
0c20: 20 53 51 4c 20 73 74 61 74 65 6d 65 6e 74 3a 0d SQL statement:.
0c30: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 43 52 45 .<verbatim>..CRE
0c40: 41 54 45 20 54 41 42 4c 45 20 73 69 63 69 6c 69 ATE TABLE sicili
0c50: 61 5f 31 20 41 53 0d 0a 53 45 4c 45 43 54 20 63 a_1 AS..SELECT c
0c60: 6f 64 5f 72 65 67 2c 20 0d 0a 20 20 20 41 54 4d od_reg, .. ATM
0c70: 5f 54 72 61 6e 73 66 6f 72 6d 28 67 65 6f 6d 65 _Transform(geome
0c80: 74 72 79 2c 0d 0a 20 20 20 20 20 20 41 54 4d 5f try,.. ATM_
0c90: 43 72 65 61 74 65 54 72 61 6e 73 6c 61 74 65 28 CreateTranslate(
0ca0: 2d 31 35 30 30 30 30 2c 20 31 35 30 30 30 30 29 -150000, 150000)
0cb0: 29 20 41 53 20 67 65 6f 6d 0d 0a 46 52 4f 4d 20 ) AS geom..FROM
0cc0: 73 69 63 69 6c 69 61 5f 30 3b 0d 0a 53 45 4c 45 sicilia_0;..SELE
0cd0: 43 54 20 52 65 63 6f 76 65 72 47 65 6f 6d 65 74 CT RecoverGeomet
0ce0: 72 79 43 6f 6c 75 6d 6e 28 27 73 69 63 69 6c 69 ryColumn('sicili
0cf0: 61 5f 31 27 2c 20 27 67 65 6f 6d 27 2c 20 33 32 a_1', 'geom', 32
0d00: 36 33 32 2c 20 27 4d 55 4c 54 49 50 4f 4c 59 47 632, 'MULTIPOLYG
0d10: 4f 4e 27 2c 20 27 58 59 27 29 3b 0d 0a 3c 2f 76 ON', 'XY');..</v
0d20: 65 72 62 61 74 69 6d 3e 20 0d 0a 3c 62 3e 52 65 erbatim> ..<b>Re
0d30: 6d 61 72 6b 73 3c 2f 62 3e 3a 0d 0a 3c 75 6c 3e marks</b>:..<ul>
0d40: 0d 0a 3c 6c 69 3e 61 6c 6c 20 61 66 66 69 6e 65 ..<li>all affine
0d50: 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 transformation
0d60: 72 65 6c 61 74 65 64 20 53 51 4c 20 66 75 6e 63 related SQL func
0d70: 74 69 6f 6e 20 6e 61 6d 65 73 20 73 74 61 72 74 tion names start
0d80: 20 77 69 74 68 20 61 6e 20 3c 62 3e 41 54 4d 5f with an <b>ATM_
0d90: 3c 2f 62 3e 20 70 72 65 66 69 78 3a 20 74 68 69 </b> prefix: thi
0da0: 73 20 73 69 6d 70 6c 79 20 73 74 61 6e 64 73 20 s simply stands
0db0: 66 6f 72 20 3c 69 3e 3c 62 3e 3c 75 3e 41 3c 2f for <i><b><u>A</
0dc0: 75 3e 3c 2f 62 3e 66 66 69 6e 65 20 3c 62 3e 3c u></b>ffine <b><
0dd0: 75 3e 54 3c 2f 75 3e 3c 2f 62 3e 72 61 6e 73 66 u>T</u></b>ransf
0de0: 6f 72 6d 61 74 69 6f 6e 20 3c 62 3e 3c 75 3e 4d ormation <b><u>M
0df0: 3c 2f 75 3e 3c 2f 62 3e 61 74 72 69 78 3c 2f 69 </u></b>atrix</i
0e00: 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e >.</li>..<li><b>
0e10: 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 29 3c ATM_Transform()<
0e20: 2f 62 3e 20 69 73 20 76 65 72 79 20 73 69 6d 69 /b> is very simi
0e30: 6c 61 72 20 74 6f 20 3c 62 3e 53 54 5f 54 72 61 lar to <b>ST_Tra
0e40: 6e 73 66 6f 72 6d 28 29 3c 2f 62 3e 3b 20 74 68 nsform()</b>; th
0e50: 65 20 6d 6f 73 74 20 6f 62 76 69 6f 75 73 20 64 e most obvious d
0e60: 69 66 66 65 72 65 6e 63 65 20 69 73 20 69 6e 20 ifference is in
0e70: 74 68 61 74 20 61 6c 6c 20 74 72 61 6e 73 66 6f that all transfo
0e80: 72 6d 61 74 69 6f 6e 20 61 72 67 75 6d 65 6e 74 rmation argument
0e90: 73 20 61 72 65 20 6e 6f 77 20 65 78 70 65 63 74 s are now expect
0ea0: 65 64 20 74 6f 20 62 65 20 70 61 73 73 65 64 20 ed to be passed
0eb0: 75 6e 64 65 72 20 74 68 65 20 66 6f 72 6d 20 6f under the form o
0ec0: 66 20 61 6e 20 61 70 70 72 6f 70 72 69 61 74 65 f an appropriate
0ed0: 20 3c 62 3e 42 4c 4f 42 2d 73 65 72 69 61 6c 69 <b>BLOB-seriali
0ee0: 7a 65 64 3c 2f 62 3e 20 41 66 66 69 6e 65 20 54 zed</b> Affine T
0ef0: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 ransformation Ma
0f00: 74 72 69 78 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e trix.</li>..<li>
0f10: 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 54 72 61 <b>ATM_CreateTra
0f20: 6e 73 6c 61 74 65 28 29 3c 2f 62 3e 20 73 69 6d nslate()</b> sim
0f30: 70 6c 79 20 69 73 20 61 6e 20 53 51 4c 20 66 75 ply is an SQL fu
0f40: 6e 63 74 69 6f 6e 20 72 65 74 75 72 6e 69 6e 67 nction returning
0f50: 20 61 20 3c 62 3e 42 4c 4f 42 2d 73 65 72 69 61 a <b>BLOB-seria
0f60: 6c 69 7a 65 64 3c 2f 62 3e 20 41 66 66 69 6e 65 lized</b> Affine
0f70: 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 Transformation
0f80: 4d 61 74 72 69 78 20 69 6e 69 74 69 61 6c 69 7a Matrix initializ
0f90: 65 64 20 69 6e 20 73 75 63 68 20 61 20 77 61 79 ed in such a way
0fa0: 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 61 20 to represent a
0fb0: 73 69 6d 70 6c 65 20 3c 62 3e 32 44 20 54 72 61 simple <b>2D Tra
0fc0: 6e 73 6c 61 74 65 3c 2f 62 3e 20 61 63 63 6f 72 nslate</b> accor
0fd0: 64 69 6e 67 6c 79 20 74 6f 20 3c 62 3e 28 74 78 dingly to <b>(tx
0fe0: 2c 20 74 79 29 3c 2f 62 3e 20 61 72 67 75 6d 65 , ty)</b> argume
0ff0: 6e 74 73 2e 3c 62 72 3e 0d 0a 59 6f 75 20 63 6f nts.<br>..You co
1000: 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 64 uld eventually d
1010: 65 66 69 6e 65 20 61 20 63 6f 6d 70 6c 65 74 65 efine a complete
1020: 20 3c 62 3e 33 44 20 54 72 61 6e 73 6c 61 74 65 <b>3D Translate
1030: 3c 2f 62 3e 20 62 79 20 70 61 73 73 69 6e 67 20 </b> by passing
1040: 3c 62 3e 28 74 78 2c 20 74 79 2c 20 74 7a 29 3c <b>(tx, ty, tz)<
1050: 2f 62 3e 20 61 72 67 75 6d 65 6e 74 73 2c 20 62 /b> arguments, b
1060: 75 74 20 74 68 69 73 20 69 73 6e 27 74 20 73 74 ut this isn't st
1070: 72 69 63 74 6c 79 20 72 65 71 75 69 72 65 64 20 rictly required
1080: 69 6e 20 6f 75 72 20 63 75 72 72 65 6e 74 20 65 in our current e
1090: 78 61 6d 70 6c 65 2e 0d 0a 3c 2f 75 6c 3e 0d 0a xample...</ul>..
10a0: 3c 2f 74 64 3e 3c 74 64 3e 0d 0a 3c 69 6d 67 20 </td><td>..<img
10b0: 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 src="https://www
10c0: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 .gaia-gis.it/gai
10d0: 61 2d 73 69 6e 73 2f 61 66 66 69 6e 65 2d 70 69 a-sins/affine-pi
10e0: 63 73 2f 73 69 63 69 6c 79 5f 31 2e 70 6e 67 22 cs/sicily_1.png"
10f0: 20 61 6c 74 3d 22 73 69 63 69 6c 69 61 2d 31 22 alt="sicilia-1"
1100: 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d 0a 3c 2f border="1">..</
1110: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
1120: 64 3e 0d 0a 3c 68 33 3e 53 74 65 70 20 23 32 3a d>..<h3>Step #2:
1130: 20 72 6f 74 61 74 69 6e 67 20 53 69 63 69 6c 79 rotating Sicily
1140: 20 73 6f 20 74 6f 20 67 65 74 20 61 20 6e 69 63 so to get a nic
1150: 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6c 69 e horizontal ali
1160: 67 6e 6d 65 6e 74 3c 2f 68 33 3e 0d 0a 41 6c 69 gnment</h3>..Ali
1170: 67 6e 69 6e 67 20 74 68 65 20 73 6f 75 74 68 65 gning the southe
1180: 72 6e 20 73 68 6f 72 65 73 20 6f 66 20 53 69 63 rn shores of Sic
1190: 69 6c 79 20 74 6f 20 61 6e 20 61 6c 6d 6f 73 74 ily to an almost
11a0: 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 6c 69 6e 65 horizontal line
11b0: 20 77 69 6c 6c 20 73 75 72 65 6c 79 20 6c 65 61 will surely lea
11c0: 64 20 74 6f 20 61 20 6d 6f 72 65 20 6e 69 63 65 d to a more nice
11d0: 6c 79 20 6f 72 64 65 72 65 64 20 6c 61 79 6f 75 ly ordered layou
11e0: 74 3a 20 73 6f 20 77 65 20 68 61 76 65 20 6e 6f t: so we have no
11f0: 77 20 74 6f 20 61 70 70 6c 79 20 61 20 3c 61 20 w to apply a <a
1200: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e href="http://en.
1210: 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 wikipedia.org/wi
1220: 6b 69 2f 52 6f 74 61 74 69 6f 6e 5f 25 32 38 6d ki/Rotation_%28m
1230: 61 74 68 65 6d 61 74 69 63 73 25 32 39 22 3e 63 athematics%29">c
1240: 6f 75 6e 74 65 72 63 6c 6f 63 6b 77 69 73 65 20 ounterclockwise
1250: 72 6f 74 61 74 69 6f 6e 3c 2f 61 3e 20 6f 66 20 rotation</a> of
1260: 61 62 6f 75 74 20 3c 62 3e 32 35 2e 30 20 64 65 about <b>25.0 de
1270: 67 72 65 65 73 3c 2f 62 3e 2e 3c 62 72 3e 0d 0a grees</b>.<br>..
1280: 54 68 61 6e 6b 73 20 74 6f 20 41 66 66 69 6e 65 Thanks to Affine
1290: 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 Transformations
12a0: 2c 20 77 65 20 63 61 6e 20 63 6f 6d 62 69 6e 65 , we can combine
12b0: 20 62 6f 74 68 20 74 68 65 20 70 72 65 76 69 6f both the previo
12c0: 75 73 20 74 72 61 6e 73 6c 61 74 69 6f 6e 20 61 us translation a
12d0: 6e 64 20 74 68 65 20 63 75 72 72 65 6e 74 20 72 nd the current r
12e0: 6f 74 61 74 69 6f 6e 20 69 6e 74 6f 20 61 20 73 otation into a s
12f0: 69 6e 67 6c 65 20 6d 6f 76 65 6d 65 6e 74 20 28 ingle movement (
1300: 61 20 73 6f 20 63 61 6c 6c 65 64 20 3c 62 3e 72 a so called <b>r
1310: 6f 74 6f 74 72 61 6e 73 6c 61 74 69 6f 6e 3c 2f ototranslation</
1320: 62 3e 29 2e 3c 62 72 3e 0d 0a 57 65 20 73 69 6d b>).<br>..We sim
1330: 70 6c 79 20 68 61 76 65 20 74 6f 20 65 78 65 63 ply have to exec
1340: 75 74 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e ute the followin
1350: 67 20 53 51 4c 20 73 74 61 74 65 6d 65 6e 74 3a g SQL statement:
1360: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 43 52 45 41 ..<verbatim>CREA
1370: 54 45 20 54 41 42 4c 45 20 73 69 63 69 6c 69 61 TE TABLE sicilia
1380: 5f 32 20 41 53 0d 0a 53 45 4c 45 43 54 20 63 6f _2 AS..SELECT co
1390: 64 5f 72 65 67 2c 20 0d 0a 20 20 20 41 54 4d 5f d_reg, .. ATM_
13a0: 54 72 61 6e 73 66 6f 72 6d 28 67 65 6f 6d 65 74 Transform(geomet
13b0: 72 79 2c 0d 0a 20 20 20 20 20 20 41 54 4d 5f 54 ry,.. ATM_T
13c0: 72 61 6e 73 6c 61 74 65 28 2d 31 35 30 30 30 30 ranslate(-150000
13d0: 2c 20 31 35 30 30 30 30 2c 0d 0a 20 20 20 20 20 , 150000,..
13e0: 20 20 20 20 41 54 4d 5f 54 72 61 6e 73 6c 61 74 ATM_Translat
13f0: 65 28 63 78 2c 20 63 79 2c 0d 0a 20 20 20 20 20 e(cx, cy,..
1400: 20 20 20 20 20 20 20 41 54 4d 5f 52 6f 74 61 74 ATM_Rotat
1410: 65 28 32 35 2c 0d 0a 20 20 20 20 20 20 20 20 20 e(25,..
1420: 20 20 20 20 20 20 41 54 4d 5f 43 72 65 61 74 65 ATM_Create
1430: 54 72 61 6e 73 6c 61 74 65 28 2d 63 78 2c 20 2d Translate(-cx, -
1440: 63 79 29 29 29 29 29 20 41 53 20 67 65 6f 6d 0d cy))))) AS geom.
1450: 0a 46 52 4f 4d 20 28 53 45 4c 45 43 54 20 63 6f .FROM (SELECT co
1460: 64 5f 72 65 67 2c 20 53 54 5f 58 28 63 65 6e 74 d_reg, ST_X(cent
1470: 72 6f 69 64 29 20 41 53 20 63 78 2c 20 53 54 5f roid) AS cx, ST_
1480: 59 28 63 65 6e 74 72 6f 69 64 29 20 41 53 20 63 Y(centroid) AS c
1490: 79 2c 20 67 65 6f 6d 65 74 72 79 0d 0a 20 20 20 y, geometry..
14a0: 20 20 20 46 52 4f 4d 20 28 53 45 4c 45 43 54 20 FROM (SELECT
14b0: 63 6f 64 5f 72 65 67 2c 20 53 54 5f 43 65 6e 74 cod_reg, ST_Cent
14c0: 72 6f 69 64 28 67 65 6f 6d 65 74 72 79 29 20 41 roid(geometry) A
14d0: 53 20 63 65 6e 74 72 6f 69 64 2c 20 67 65 6f 6d S centroid, geom
14e0: 65 74 72 79 20 0d 0a 20 20 20 20 20 20 20 20 20 etry ..
14f0: 20 20 20 46 52 4f 4d 20 73 69 63 69 6c 69 61 5f FROM sicilia_
1500: 30 29 20 41 53 20 67 31 0d 0a 29 20 41 53 20 67 0) AS g1..) AS g
1510: 32 3b 0d 0a 53 45 4c 45 43 54 20 52 65 63 6f 76 2;..SELECT Recov
1520: 65 72 47 65 6f 6d 65 74 72 79 43 6f 6c 75 6d 6e erGeometryColumn
1530: 28 27 73 69 63 69 6c 69 61 5f 32 27 2c 20 27 67 ('sicilia_2', 'g
1540: 65 6f 6d 27 2c 20 33 32 36 33 32 2c 20 27 4d 55 eom', 32632, 'MU
1550: 4c 54 49 50 4f 4c 59 47 4f 4e 27 2c 20 27 58 59 LTIPOLYGON', 'XY
1560: 27 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e ');..</verbatim>
1570: 20 20 0d 0a 3c 62 3e 52 65 6d 61 72 6b 73 3c 2f ..<b>Remarks</
1580: 62 3e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 63 b>:..<ul>..<li>c
1590: 6f 72 72 65 63 74 6c 79 20 68 61 6e 64 6c 69 6e orrectly handlin
15a0: 67 20 52 6f 74 61 74 65 20 69 73 20 61 20 6c 69 g Rotate is a li
15b0: 74 74 6c 65 20 62 69 74 20 6d 6f 72 65 20 64 69 ttle bit more di
15c0: 66 66 69 63 75 6c 74 2e 0d 0a 41 6e 79 20 72 6f fficult...Any ro
15d0: 74 61 74 69 6f 6e 20 77 69 6c 6c 20 61 6c 77 61 tation will alwa
15e0: 79 73 20 69 6d 70 6c 79 20 61 20 3c 62 3e 66 69 ys imply a <b>fi
15f0: 78 65 64 20 63 65 6e 74 65 72 20 70 6f 69 6e 74 xed center point
1600: 3c 2f 62 3e 2c 20 61 6e 64 20 62 79 20 64 65 66 </b>, and by def
1610: 61 75 6c 74 20 74 68 69 73 20 69 73 20 65 78 61 ault this is exa
1620: 63 74 6c 79 20 70 6c 61 63 65 64 20 61 74 20 74 ctly placed at t
1630: 68 65 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 6f he coordinates o
1640: 72 69 67 69 6e 3a 20 3c 62 3e 28 30 2c 20 30 29 rigin: <b>(0, 0)
1650: 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e </b>.</li>..<li>
1660: 73 6f 20 61 20 76 65 72 79 20 6e 61 69 76 65 20 so a very naive
1670: 61 74 74 65 6d 70 74 20 74 6f 20 64 69 72 65 63 attempt to direc
1680: 74 6c 79 20 69 6e 76 6f 6b 65 20 3c 62 3e 41 54 tly invoke <b>AT
1690: 4d 5f 52 6f 74 61 74 65 28 32 35 29 3c 2f 62 3e M_Rotate(25)</b>
16a0: 20 77 69 6c 6c 20 73 69 6d 70 6c 79 20 72 65 6c will simply rel
16b0: 6f 63 61 74 65 20 53 69 63 69 6c 79 20 69 6e 20 ocate Sicily in
16c0: 53 6f 75 74 68 65 72 6e 20 53 70 61 69 6e 2c 20 Southern Spain,
16d0: 61 6e 64 20 74 68 69 73 20 61 62 73 6f 6c 75 74 and this absolut
16e0: 65 6c 79 20 69 73 6e 27 74 20 6f 75 72 20 69 6e ely isn't our in
16f0: 74 65 6e 74 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c tention.</li>..<
1700: 6c 69 3e 77 68 61 74 20 77 65 20 72 65 61 6c 6c li>what we reall
1710: 79 20 6e 65 65 64 20 69 73 20 61 20 6d 6f 72 65 y need is a more
1720: 20 63 6f 6d 70 6c 65 78 20 73 65 71 75 65 6e 63 complex sequenc
1730: 65 20 6f 66 20 63 68 61 69 6e 65 64 20 74 72 61 e of chained tra
1740: 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 3a 0d 0a 3c nsformations:..<
1750: 6f 6c 3e 0d 0a 3c 6c 69 3e 77 65 27 6c 6c 20 73 ol>..<li>we'll s
1760: 74 61 72 74 20 66 69 72 73 74 20 62 79 20 63 72 tart first by cr
1770: 65 61 74 69 6e 67 20 61 20 6e 65 77 20 3c 62 3e eating a new <b>
1780: 42 4c 4f 42 2d 4d 61 74 72 69 78 3c 2f 62 3e 20 BLOB-Matrix</b>
1790: 69 6e 74 65 6e 64 65 64 20 74 6f 20 72 65 6c 6f intended to relo
17a0: 63 61 74 65 20 53 69 63 69 6c 79 27 73 20 3c 61 cate Sicily's <a
17b0: 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e href="http://en
17c0: 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 .wikipedia.org/w
17d0: 69 6b 69 2f 43 65 6e 74 72 6f 69 64 22 3e 63 65 iki/Centroid">ce
17e0: 6e 74 72 6f 69 64 3c 2f 61 3e 20 65 78 61 63 74 ntroid</a> exact
17f0: 6c 79 20 6f 6e 20 74 68 65 20 63 6f 6f 72 64 69 ly on the coordi
1800: 6e 61 74 65 73 20 6f 72 69 67 69 6e 3a 20 3c 62 nates origin: <b
1810: 3e 41 54 4d 5f 43 72 65 61 74 65 54 72 61 6e 73 >ATM_CreateTrans
1820: 6c 61 74 65 28 2d 63 78 2c 20 2d 63 79 29 3c 2f late(-cx, -cy)</
1830: 62 3e 3c 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e 6e 6f b></li> ..<li>no
1840: 77 20 77 65 20 63 61 6e 20 73 61 66 65 6c 79 20 w we can safely
1850: 63 68 61 69 6e 20 74 68 65 20 69 6e 74 65 6e 64 chain the intend
1860: 65 64 20 52 6f 74 61 74 65 3a 20 3c 62 3e 41 54 ed Rotate: <b>AT
1870: 4d 5f 52 6f 74 61 74 65 28 32 35 2c 20 61 74 6d M_Rotate(25, atm
1880: 2d 62 6c 6f 62 29 3c 2f 62 3e 3c 2f 6c 69 3e 0d -blob)</b></li>.
1890: 0a 3c 6c 69 3e 61 66 74 65 72 20 61 70 70 6c 79 .<li>after apply
18a0: 69 6e 67 20 52 6f 74 61 74 65 20 77 65 20 68 61 ing Rotate we ha
18b0: 76 65 20 6e 6f 77 20 74 6f 20 72 65 73 74 6f 72 ve now to restor
18c0: 65 20 74 68 65 20 69 6e 69 74 69 61 6c 20 70 6f e the initial po
18d0: 73 69 74 69 6f 6e 3a 20 3c 62 3e 41 54 4d 5f 54 sition: <b>ATM_T
18e0: 72 61 6e 73 6c 61 74 65 28 63 78 2c 20 63 79 2c ranslate(cx, cy,
18f0: 20 61 74 6d 2d 62 6c 6f 62 29 3c 2f 62 3e 3c 2f atm-blob)</b></
1900: 6c 69 3e 0d 0a 3c 6c 69 3e 61 6e 64 20 66 69 6e li>..<li>and fin
1910: 61 6c 6c 79 20 77 65 27 6c 6c 20 61 70 70 6c 79 ally we'll apply
1920: 20 74 68 65 20 54 72 61 6e 73 6c 61 74 69 6f 6e the Translation
1930: 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 72 65 70 intended to rep
1940: 6f 73 69 74 69 6f 6e 20 53 69 63 69 6c 79 20 77 osition Sicily w
1950: 65 73 74 77 61 72 64 20 61 6e 64 20 6e 6f 72 74 estward and nort
1960: 68 77 61 72 64 3a 20 3c 62 3e 41 54 4d 5f 54 72 hward: <b>ATM_Tr
1970: 61 6e 73 6c 61 74 65 28 2d 31 35 30 30 30 30 2c anslate(-150000,
1980: 20 31 35 30 30 30 30 2c 20 61 74 6d 2d 62 6c 6f 150000, atm-blo
1990: 62 29 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 69 3e 77 b)</b><br>..<i>w
19a0: 65 27 76 65 20 75 73 65 64 20 74 77 6f 20 73 65 e've used two se
19b0: 70 61 72 61 74 65 20 74 72 61 6e 73 6c 61 74 69 parate translati
19c0: 6f 6e 73 20 73 69 6d 70 6c 79 20 66 6f 72 20 64 ons simply for d
19d0: 69 64 61 63 74 69 63 20 63 6c 61 72 69 74 79 3a idactic clarity:
19e0: 20 77 65 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 we could easily
19f0: 20 6d 65 72 67 65 20 62 6f 74 68 20 74 68 65 6d merge both them
1a00: 20 69 6e 74 6f 20 61 20 73 69 6e 67 6c 65 20 74 into a single t
1a10: 72 61 6e 73 6c 61 74 69 6f 6e 3a 3c 62 72 3e 20 ranslation:<br>
1a20: 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 63 78 ATM_Translate(cx
1a30: 20 2d 20 31 35 30 30 30 30 2c 20 63 79 20 2b 20 - 150000, cy +
1a40: 31 35 30 30 30 30 2c 20 61 74 6d 2d 62 6c 6f 62 150000, atm-blob
1a50: 29 3c 2f 69 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e )</i></li>..<li>
1a60: 74 68 69 73 20 77 61 79 20 3c 62 3e 41 54 4d 5f this way <b>ATM_
1a70: 54 72 61 6e 73 66 6f 72 6d 28 29 3c 2f 62 3e 20 Transform()</b>
1a80: 77 69 6c 6c 20 72 65 63 65 69 76 65 20 74 68 65 will receive the
1a90: 20 66 69 6e 61 6c 20 3c 62 3e 42 4c 4f 42 2d 4d final <b>BLOB-M
1aa0: 61 74 72 69 78 3c 2f 62 3e 20 72 65 73 75 6c 74 atrix</b> result
1ab0: 69 6e 67 20 62 79 20 63 68 61 69 6e 69 6e 67 20 ing by chaining
1ac0: 61 6c 6c 20 74 68 65 20 61 62 6f 76 65 20 74 72 all the above tr
1ad0: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 73 74 65 ansformation ste
1ae0: 70 73 20 69 6e 20 74 68 65 20 63 6f 72 72 65 63 ps in the correc
1af0: 74 20 73 65 71 75 65 6e 63 65 2e 3c 2f 6c 69 3e t sequence.</li>
1b00: 0d 0a 3c 2f 6f 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 6c ..</ol></li>..<l
1b10: 69 3e 3c 62 3e 3c 75 3e 56 65 72 79 20 69 6d 70 i><b><u>Very imp
1b20: 6f 72 74 61 6e 74 20 6e 6f 74 69 63 65 3c 2f 75 ortant notice</u
1b30: 3e 3c 2f 62 3e 3a 20 41 66 66 69 6e 65 20 54 72 ></b>: Affine Tr
1b40: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 20 3c 75 ansformations <u
1b50: 3e 61 72 65 20 6e 6f 74 20 63 6f 6d 6d 75 74 61 >are not commuta
1b60: 74 69 76 65 3c 2f 75 3e 3a 20 74 68 65 20 72 65 tive</u>: the re
1b70: 6c 61 74 69 76 65 20 6f 72 64 65 72 20 6f 66 20 lative order of
1b80: 73 75 62 73 65 71 75 65 6e 74 20 6f 70 65 72 61 subsequent opera
1b90: 74 69 6f 6e 73 20 69 6e 20 61 20 63 6f 6d 70 6c tions in a compl
1ba0: 65 78 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f ex transformatio
1bb0: 6e 20 63 68 61 69 6e 20 73 68 6f 75 6c 64 20 61 n chain should a
1bc0: 6c 77 61 79 73 20 62 65 20 76 65 72 79 20 63 61 lways be very ca
1bd0: 72 65 66 75 6c 6c 79 20 63 6f 6e 73 69 64 65 72 refully consider
1be0: 65 64 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 6c ed.</li>..<li>al
1bf0: 6c 20 74 68 65 20 3c 62 3e 46 52 4f 4d 20 28 53 l the <b>FROM (S
1c00: 45 4c 45 43 54 20 2e 2e 2e 20 46 52 4f 4d 20 28 ELECT ... FROM (
1c10: 53 45 4c 45 43 54 20 2e 2e 2e 29 20 41 53 20 67 SELECT ...) AS g
1c20: 31 29 20 41 53 20 67 32 3c 2f 62 3e 20 73 74 75 1) AS g2</b> stu
1c30: 66 66 20 73 69 6d 70 6c 79 20 69 73 20 61 20 72 ff simply is a r
1c40: 61 74 68 65 72 20 74 72 69 76 69 61 6c 20 53 51 ather trivial SQ
1c50: 4c 20 74 72 69 63 6b 20 62 61 73 65 64 20 6f 6e L trick based on
1c60: 20 74 77 6f 20 6e 65 73 74 65 64 20 73 75 62 2d two nested sub-
1c70: 71 75 65 72 69 65 73 2e 3c 62 72 3e 0d 0a 69 74 queries.<br>..it
1c80: 27 73 20 69 6e 64 65 6e 74 65 64 20 73 63 6f 70 's indented scop
1c90: 65 20 73 69 6d 70 6c 79 20 69 73 20 61 76 6f 69 e simply is avoi
1ca0: 64 69 6e 67 20 74 6f 20 63 61 6c 6c 20 74 6f 6f ding to call too
1cb0: 20 6d 61 6e 79 20 74 69 6d 65 73 20 53 54 5f 43 many times ST_C
1cc0: 65 6e 74 72 6f 69 64 28 29 2c 20 53 54 5f 58 28 entroid(), ST_X(
1cd0: 29 20 61 6e 64 20 53 54 5f 59 28 29 20 69 6e 20 ) and ST_Y() in
1ce0: 6f 72 64 65 72 20 74 6f 20 67 65 74 20 74 68 65 order to get the
1cf0: 20 63 65 6e 74 72 6f 69 64 20 63 6f 6f 72 64 69 centroid coordi
1d00: 6e 61 74 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 nates.</li>..</u
1d10: 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 0d 0a 3c l>..</td><td>..<
1d20: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f img src="https:/
1d30: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
1d40: 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 66 69 6e /gaia-sins/affin
1d50: 65 2d 70 69 63 73 2f 73 69 63 69 6c 79 5f 32 2e e-pics/sicily_2.
1d60: 70 6e 67 22 20 61 6c 74 3d 22 73 69 63 69 6c 69 png" alt="sicili
1d70: 61 2d 32 22 20 62 6f 72 64 65 72 3d 22 31 22 3e a-2" border="1">
1d80: 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 ..</td></tr>..<t
1d90: 72 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 53 74 65 70 r><td>..<h3>Step
1da0: 20 23 33 3a 20 69 6e 66 6c 61 74 69 6e 67 20 61 #3: inflating a
1db0: 6e 64 20 72 65 73 68 61 70 69 6e 67 20 53 69 63 nd reshaping Sic
1dc0: 69 6c 79 3c 2f 68 33 3e 0d 0a 41 6e 20 69 6e 63 ily</h3>..An inc
1dd0: 72 65 61 73 65 64 20 73 75 72 66 61 63 65 20 69 reased surface i
1de0: 73 20 73 75 72 65 6c 79 20 77 65 6c 63 6f 6d 65 s surely welcome
1df0: 2c 20 62 65 63 61 75 73 65 20 69 74 20 61 75 74 , because it aut
1e00: 6f 6d 61 74 69 63 61 6c 6c 79 20 69 6d 70 6c 69 omatically impli
1e10: 65 73 20 6d 6f 72 65 20 61 67 72 69 63 75 6c 74 es more agricult
1e20: 75 72 61 6c 20 6c 61 6e 64 73 3a 20 6f 6e 20 74 ural lands: on t
1e30: 68 65 20 6f 74 68 65 72 20 68 61 6e 64 20 73 68 he other hand sh
1e40: 6f 72 74 65 6e 69 6e 67 20 61 20 6c 69 74 74 6c ortening a littl
1e50: 65 20 62 69 74 20 74 68 65 20 6c 65 6e 67 74 68 e bit the length
1e60: 20 6f 66 20 74 68 65 20 73 6f 75 74 68 65 72 6e of the southern
1e70: 20 63 6f 61 73 74 6c 69 6e 65 20 77 69 6c 6c 20 coastline will
1e80: 73 75 72 65 6c 79 20 66 61 63 69 6c 69 74 61 74 surely facilitat
1e90: 65 20 6d 6f 62 69 6c 69 74 79 20 61 6e 64 20 63 e mobility and c
1ea0: 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 73 2e 3c 62 ommunications.<b
1eb0: 72 3e 0d 0a 53 6f 20 77 65 27 6c 6c 20 6e 6f 77 r>..So we'll now
1ec0: 20 61 70 70 6c 79 20 61 20 3c 61 20 68 72 65 66 apply a <a href
1ed0: 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b 69 ="http://en.wiki
1ee0: 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 53 pedia.org/wiki/S
1ef0: 63 61 6c 69 6e 67 5f 25 32 38 67 65 6f 6d 65 74 caling_%28geomet
1f00: 72 79 25 32 39 22 3e 73 63 61 6c 69 6e 67 3c 2f ry%29">scaling</
1f10: 61 3e 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f a> transformatio
1f20: 6e 20 75 73 69 6e 67 20 74 77 6f 20 64 69 66 66 n using two diff
1f30: 65 72 65 6e 74 20 76 61 6c 75 65 73 3a 20 3c 62 erent values: <b
1f40: 3e 73 78 3d 30 2e 39 3c 2f 62 3e 20 61 6e 64 20 >sx=0.9</b> and
1f50: 3c 62 3e 73 79 3d 31 2e 33 3c 2f 62 3e 2e 3c 62 <b>sy=1.3</b>.<b
1f60: 72 3e 0d 0a 4f 6e 63 65 20 61 67 61 69 6e 2c 20 r>..Once again,
1f70: 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d Affine Transform
1f80: 61 74 69 6f 6e 73 20 65 6e 61 62 6c 65 20 75 73 ations enable us
1f90: 20 74 6f 20 63 6f 6d 62 69 6e 65 20 61 6c 74 6f to combine alto
1fa0: 67 65 74 68 65 72 20 62 6f 74 68 20 74 72 61 6e gether both tran
1fb0: 73 6c 61 74 65 2c 20 72 6f 74 61 74 65 20 61 6e slate, rotate an
1fc0: 64 20 73 63 61 6c 65 20 69 6e 74 6f 20 61 20 73 d scale into a s
1fd0: 69 6e 67 6c 65 20 74 72 61 6e 73 66 6f 72 6d 61 ingle transforma
1fe0: 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 tion.<br>..This
1ff0: 69 73 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e is the correspon
2000: 64 69 6e 67 20 53 51 4c 20 73 74 61 74 65 6d 65 ding SQL stateme
2010: 6e 74 3a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d nt:..<verbatim>.
2020: 0a 43 52 45 41 54 45 20 54 41 42 4c 45 20 73 69 .CREATE TABLE si
2030: 63 69 6c 69 61 5f 33 20 41 53 0d 0a 53 45 4c 45 cilia_3 AS..SELE
2040: 43 54 20 63 6f 64 5f 72 65 67 2c 20 0d 0a 20 20 CT cod_reg, ..
2050: 20 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 67 ATM_Transform(g
2060: 65 6f 6d 65 74 72 79 2c 0d 0a 20 20 20 20 20 20 eometry,..
2070: 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 2d 31 ATM_Translate(-1
2080: 35 30 30 30 30 2c 20 31 35 30 30 30 30 2c 0d 0a 50000, 150000,..
2090: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 54 72 61 ATM_Tra
20a0: 6e 73 6c 61 74 65 28 63 78 2c 20 63 79 2c 0d 0a nslate(cx, cy,..
20b0: 20 20 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f ATM_
20c0: 53 63 61 6c 65 28 30 2e 39 2c 20 31 2e 33 2c 0d Scale(0.9, 1.3,.
20d0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .
20e0: 41 54 4d 5f 52 6f 74 61 74 65 28 32 35 2c 0d 0a ATM_Rotate(25,..
20f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2100: 20 20 41 54 4d 5f 43 72 65 61 74 65 54 72 61 6e ATM_CreateTran
2110: 73 6c 61 74 65 28 2d 63 78 2c 20 2d 63 79 29 29 slate(-cx, -cy))
2120: 29 29 29 29 20 41 53 20 67 65 6f 6d 0d 0a 46 52 )))) AS geom..FR
2130: 4f 4d 20 28 53 45 4c 45 43 54 20 63 6f 64 5f 72 OM (SELECT cod_r
2140: 65 67 2c 20 53 54 5f 58 28 63 65 6e 74 72 6f 69 eg, ST_X(centroi
2150: 64 29 20 41 53 20 63 78 2c 20 53 54 5f 59 28 63 d) AS cx, ST_Y(c
2160: 65 6e 74 72 6f 69 64 29 20 41 53 20 63 79 2c 20 entroid) AS cy,
2170: 67 65 6f 6d 65 74 72 79 0d 0a 20 20 20 20 20 20 geometry..
2180: 46 52 4f 4d 20 28 53 45 4c 45 43 54 20 63 6f 64 FROM (SELECT cod
2190: 5f 72 65 67 2c 20 53 54 5f 43 65 6e 74 72 6f 69 _reg, ST_Centroi
21a0: 64 28 67 65 6f 6d 65 74 72 79 29 20 41 53 20 63 d(geometry) AS c
21b0: 65 6e 74 72 6f 69 64 2c 20 67 65 6f 6d 65 74 72 entroid, geometr
21c0: 79 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 y ..
21d0: 46 52 4f 4d 20 73 69 63 69 6c 69 61 5f 30 29 20 FROM sicilia_0)
21e0: 41 53 20 67 31 0d 0a 29 20 41 53 20 67 32 3b 0d AS g1..) AS g2;.
21f0: 0a 53 45 4c 45 43 54 20 52 65 63 6f 76 65 72 47 .SELECT RecoverG
2200: 65 6f 6d 65 74 72 79 43 6f 6c 75 6d 6e 28 27 73 eometryColumn('s
2210: 69 63 69 6c 69 61 5f 33 27 2c 20 27 67 65 6f 6d icilia_3', 'geom
2220: 27 2c 20 33 32 36 33 32 2c 20 27 4d 55 4c 54 49 ', 32632, 'MULTI
2230: 50 4f 4c 59 47 4f 4e 27 2c 20 27 58 59 27 29 3b POLYGON', 'XY');
2240: 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 20 0d 0a ..</verbatim> ..
2250: 3c 62 3e 52 65 6d 61 72 6b 73 3c 2f 62 3e 3a 0d <b>Remarks</b>:.
2260: 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 72 65 .<ul>..<li>there
2270: 20 69 73 20 6e 6f 74 68 69 6e 67 20 72 65 61 6c is nothing real
2280: 6c 79 20 6e 65 77 20 69 6e 20 74 68 69 73 3a 20 ly new in this:
2290: 77 65 27 6c 6c 20 73 69 6d 70 6c 79 20 63 68 61 we'll simply cha
22a0: 69 6e 20 79 65 74 20 61 6e 6f 74 68 65 72 20 74 in yet another t
22b0: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 69 6e ransformation in
22c0: 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 the appropriate
22d0: 20 73 65 71 75 65 6e 63 65 20 6f 72 64 65 72 2e sequence order.
22e0: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 41 54 </li>..<li><b>AT
22f0: 4d 5f 53 63 61 6c 65 28 73 78 2c 20 73 79 29 3c M_Scale(sx, sy)<
2300: 2f 62 3e 20 69 73 20 69 6e 74 65 6e 64 65 64 20 /b> is intended
2310: 66 6f 72 20 74 68 65 20 73 69 6d 70 6c 65 72 20 for the simpler
2320: 3c 62 3e 32 44 3c 2f 62 3e 20 63 61 73 65 2e 3c <b>2D</b> case.<
2330: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 74 68 65 /li>..<li>in the
2340: 20 6d 6f 72 65 20 67 65 6e 65 72 61 6c 20 3c 62 more general <b
2350: 3e 33 44 3c 2f 62 3e 20 63 61 73 65 20 79 6f 75 >3D</b> case you
2360: 20 63 61 6e 20 69 6e 76 6f 6b 65 20 3c 62 3e 41 can invoke <b>A
2370: 54 4d 5f 53 63 61 6c 65 28 73 78 2c 20 73 79 2c TM_Scale(sx, sy,
2380: 20 73 7a 29 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c sz)</b></li>..<
2390: 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 0d /ul>..</td><td>.
23a0: 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 .<img src="https
23b0: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
23c0: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 61 66 66 it/gaia-sins/aff
23d0: 69 6e 65 2d 70 69 63 73 2f 73 69 63 69 6c 79 5f ine-pics/sicily_
23e0: 33 2e 70 6e 67 22 20 61 6c 74 3d 22 73 69 63 69 3.png" alt="sici
23f0: 6c 69 61 2d 33 22 20 62 6f 72 64 65 72 3d 22 31 lia-3" border="1
2400: 22 3e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a ">..</td></tr>..
2410: 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 68 33 3e 53 74 <tr><td>..<h3>St
2420: 65 70 20 23 34 3a 20 66 69 6e 61 6c 20 74 6f 75 ep #4: final tou
2430: 63 68 3a 20 72 65 66 6c 65 63 74 69 6e 67 20 53 ch: reflecting S
2440: 69 63 69 6c 79 3c 2f 68 33 3e 0d 0a 41 20 72 65 icily</h3>..A re
2450: 66 6c 65 63 74 65 64 20 53 69 63 69 6c 79 20 70 flected Sicily p
2460: 72 65 73 65 6e 74 73 20 6d 61 6e 79 20 69 6e 74 resents many int
2470: 65 72 65 73 74 69 6e 67 20 61 64 76 61 6e 74 61 eresting advanta
2480: 67 65 73 3a 20 77 65 27 6c 6c 20 65 78 61 6d 69 ges: we'll exami
2490: 6e 65 20 61 6c 6c 20 74 68 65 6d 20 69 6e 20 66 ne all them in f
24a0: 75 6c 6c 20 64 65 74 61 69 6c 20 69 6e 20 74 68 ull detail in th
24b0: 65 20 66 69 6e 61 6c 20 63 6f 6e 63 6c 75 73 69 e final conclusi
24c0: 6f 6e 73 20 6f 66 20 74 68 65 20 70 72 65 73 65 ons of the prese
24d0: 6e 74 20 73 74 75 64 79 2e 3c 62 72 3e 0d 0a 53 nt study.<br>..S
24e0: 6f 20 77 65 27 6c 6c 20 6e 6f 77 20 61 70 70 6c o we'll now appl
24f0: 79 20 61 20 66 69 6e 61 6c 20 3c 61 20 68 72 65 y a final <a hre
2500: 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b f="http://en.wik
2510: 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f ipedia.org/wiki/
2520: 52 65 66 6c 65 63 74 69 6f 6e 5f 25 32 38 6d 61 Reflection_%28ma
2530: 74 68 65 6d 61 74 69 63 73 25 32 39 22 3e 72 65 thematics%29">re
2540: 66 6c 65 63 74 69 6f 6e 3c 2f 61 3e 20 74 72 61 flection</a> tra
2550: 6e 73 66 6f 72 6d 61 74 69 6f 6e 3b 20 74 68 69 nsformation; thi
2560: 73 20 73 69 6d 70 6c 79 20 63 6f 72 72 65 73 70 s simply corresp
2570: 6f 6e 64 73 20 74 6f 20 61 20 3c 62 3e 31 38 30 onds to a <b>180
2580: 20 64 65 67 72 65 65 73 3c 2f 62 3e 20 72 6f 74 degrees</b> rot
2590: 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 65 ation around the
25a0: 20 3c 62 3e 59 20 61 78 69 73 3c 2f 62 3e 2e 3c <b>Y axis</b>.<
25b0: 62 72 3e 0d 0a 41 6e 64 20 74 68 65 20 66 6f 6c br>..And the fol
25c0: 6c 6f 77 69 6e 67 20 69 73 20 74 68 65 20 66 69 lowing is the fi
25d0: 6e 61 6c 20 53 51 4c 20 73 74 61 74 65 6d 65 6e nal SQL statemen
25e0: 74 20 61 70 70 6c 79 69 6e 67 20 61 6c 6c 20 74 t applying all t
25f0: 68 65 20 61 62 6f 76 65 20 74 72 61 6e 73 66 6f he above transfo
2600: 72 6d 61 74 69 6f 6e 73 20 69 6e 20 61 20 73 69 rmations in a si
2610: 6e 67 6c 65 20 73 68 6f 74 3a 0d 0a 3c 76 65 72 ngle shot:..<ver
2620: 62 61 74 69 6d 3e 43 52 45 41 54 45 20 54 41 42 batim>CREATE TAB
2630: 4c 45 20 73 69 63 69 6c 69 61 5f 32 20 41 53 0d LE sicilia_2 AS.
2640: 0a 43 52 45 41 54 45 20 54 41 42 4c 45 20 73 69 .CREATE TABLE si
2650: 63 69 6c 69 61 5f 34 20 41 53 0d 0a 53 45 4c 45 cilia_4 AS..SELE
2660: 43 54 20 63 6f 64 5f 72 65 67 2c 20 0d 0a 20 20 CT cod_reg, ..
2670: 20 41 54 4d 5f 54 72 61 6e 73 66 6f 72 6d 28 67 ATM_Transform(g
2680: 65 6f 6d 65 74 72 79 2c 0d 0a 20 20 20 20 20 20 eometry,..
2690: 41 54 4d 5f 54 72 61 6e 73 6c 61 74 65 28 2d 31 ATM_Translate(-1
26a0: 35 30 30 30 30 2c 20 31 35 30 30 30 30 2c 0d 0a 50000, 150000,..
26b0: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 54 72 61 ATM_Tra
26c0: 6e 73 6c 61 74 65 28 63 78 2c 20 63 79 2c 0d 0a nslate(cx, cy,..
26d0: 20 20 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f ATM_
26e0: 59 52 6f 6c 6c 28 31 38 30 2c 0d 0a 20 20 20 20 YRoll(180,..
26f0: 20 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f 53 ATM_S
2700: 63 61 6c 65 28 30 2e 39 2c 20 31 2e 33 2c 0d 0a cale(0.9, 1.3,..
2710: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2720: 20 20 41 54 4d 5f 52 6f 74 61 74 65 28 32 35 2c ATM_Rotate(25,
2730: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..
2740: 20 20 20 20 20 20 20 41 54 4d 5f 43 72 65 61 74 ATM_Creat
2750: 65 54 72 61 6e 73 6c 61 74 65 28 2d 63 78 2c 20 eTranslate(-cx,
2760: 2d 63 79 29 29 29 29 29 29 29 20 41 53 20 67 65 -cy))))))) AS ge
2770: 6f 6d 0d 0a 46 52 4f 4d 20 28 53 45 4c 45 43 54 om..FROM (SELECT
2780: 20 63 6f 64 5f 72 65 67 2c 20 53 54 5f 58 28 63 cod_reg, ST_X(c
2790: 65 6e 74 72 6f 69 64 29 20 41 53 20 63 78 2c 20 entroid) AS cx,
27a0: 53 54 5f 59 28 63 65 6e 74 72 6f 69 64 29 20 41 ST_Y(centroid) A
27b0: 53 20 63 79 2c 20 67 65 6f 6d 65 74 72 79 0d 0a S cy, geometry..
27c0: 20 20 20 20 20 20 46 52 4f 4d 20 28 53 45 4c 45 FROM (SELE
27d0: 43 54 20 63 6f 64 5f 72 65 67 2c 20 53 54 5f 43 CT cod_reg, ST_C
27e0: 65 6e 74 72 6f 69 64 28 67 65 6f 6d 65 74 72 79 entroid(geometry
27f0: 29 20 41 53 20 63 65 6e 74 72 6f 69 64 2c 20 67 ) AS centroid, g
2800: 65 6f 6d 65 74 72 79 20 0d 0a 20 20 20 20 20 20 eometry ..
2810: 20 20 20 20 20 20 46 52 4f 4d 20 73 69 63 69 6c FROM sicil
2820: 69 61 5f 30 29 20 41 53 20 67 31 0d 0a 29 20 41 ia_0) AS g1..) A
2830: 53 20 67 32 3b 0d 0a 53 45 4c 45 43 54 20 52 65 S g2;..SELECT Re
2840: 63 6f 76 65 72 47 65 6f 6d 65 74 72 79 43 6f 6c coverGeometryCol
2850: 75 6d 6e 28 27 73 69 63 69 6c 69 61 5f 34 27 2c umn('sicilia_4',
2860: 20 27 67 65 6f 6d 27 2c 20 33 32 36 33 32 2c 20 'geom', 32632,
2870: 27 4d 55 4c 54 49 50 4f 4c 59 47 4f 4e 27 2c 20 'MULTIPOLYGON',
2880: 27 58 59 27 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 'XY');..</verbat
2890: 69 6d 3e 20 0d 0a 3c 62 3e 52 65 6d 61 72 6b 73 im> ..<b>Remarks
28a0: 3c 2f 62 3e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 </b>:..<ul>..<li
28b0: 3e 74 68 65 72 65 20 61 72 65 20 73 65 76 65 72 >there are sever
28c0: 61 6c 20 70 6f 73 73 69 62 6c 65 20 72 6f 74 61 al possible rota
28d0: 74 69 6f 6e 73 20 73 75 70 70 6f 72 74 65 64 20 tions supported
28e0: 62 79 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 by Affine Transf
28f0: 6f 72 6d 61 74 69 6f 6e 3a 0d 0a 3c 6f 6c 3e 0d ormation:..<ol>.
2900: 0a 3c 6c 69 3e 3c 62 3e 41 54 4d 5f 52 6f 74 61 .<li><b>ATM_Rota
2910: 74 65 28 29 3c 2f 62 3e 20 61 6c 77 61 79 73 20 te()</b> always
2920: 69 6e 74 65 6e 64 73 20 61 20 3c 62 3e 32 44 3c intends a <b>2D<
2930: 2f 62 3e 20 72 6f 74 61 74 69 6f 6e 2c 20 69 2e /b> rotation, i.
2940: 65 2e 20 61 20 72 6f 74 61 74 69 6f 6e 20 63 65 e. a rotation ce
2950: 6e 74 65 72 65 64 20 61 72 6f 75 6e 64 20 74 68 ntered around th
2960: 65 20 3c 62 3e 5a 20 61 78 69 73 3c 2f 62 3e 3c e <b>Z axis</b><
2970: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 49 6e 20 74 68 65 /li>..<li>In the
2980: 20 6d 6f 72 65 20 67 65 6e 65 72 61 6c 20 3c 62 more general <b
2990: 3e 33 44 3c 2f 62 3e 20 63 61 73 65 20 74 68 65 >3D</b> case the
29a0: 72 65 20 61 72 65 20 74 68 72 65 65 20 70 6f 73 re are three pos
29b0: 73 69 62 6c 65 20 72 6f 74 61 74 69 6f 6e 73 2c sible rotations,
29c0: 20 6f 6e 65 20 66 6f 72 20 65 61 63 68 20 61 78 one for each ax
29d0: 69 73 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 is.</li>..<li>th
29e0: 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 e corresponding
29f0: 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 61 72 SQL functions ar
2a00: 65 3a 20 3c 62 3e 41 54 4d 5f 58 52 6f 6c 6c 28 e: <b>ATM_XRoll(
2a10: 61 6e 67 6c 65 29 3c 2f 62 3e 2c 20 3c 62 3e 41 angle)</b>, <b>A
2a20: 54 4d 5f 59 52 6f 6c 6c 28 61 6e 67 6c 65 29 3c TM_YRoll(angle)<
2a30: 2f 62 3e 20 61 6e 64 20 3c 62 3e 41 54 4d 5f 5a /b> and <b>ATM_Z
2a40: 52 6f 6c 6c 28 61 6e 67 6c 65 29 3c 2f 62 3e 3c Roll(angle)</b><
2a50: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 69 3e 3c 75 3e /li>..<li><i><u>
2a60: 4e 6f 74 65 3c 2f 75 3e 3a 20 41 54 4d 5f 5a 52 Note</u>: ATM_ZR
2a70: 6f 6c 6c 28 29 20 61 6e 64 20 41 54 4d 5f 52 6f oll() and ATM_Ro
2a80: 74 61 74 65 28 29 20 73 69 6d 70 6c 79 20 61 72 tate() simply ar
2a90: 65 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 e two different
2aa0: 61 6c 69 61 73 2d 6e 61 6d 65 73 20 66 6f 72 20 alias-names for
2ab0: 74 68 65 20 73 61 6d 65 20 69 64 65 6e 74 69 63 the same identic
2ac0: 61 6c 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 3c al SQL function<
2ad0: 2f 69 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e /i>.</li>..</ol>
2ae0: 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f </li>..</ul>..</
2af0: 74 64 3e 3c 74 64 3e 0d 0a 3c 69 6d 67 20 73 72 td><td>..<img sr
2b00: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
2b10: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
2b20: 73 69 6e 73 2f 61 66 66 69 6e 65 2d 70 69 63 73 sins/affine-pics
2b30: 2f 73 69 63 69 6c 79 5f 34 2e 70 6e 67 22 20 61 /sicily_4.png" a
2b40: 6c 74 3d 22 73 69 63 69 6c 69 61 2d 34 22 20 62 lt="sicilia-4" b
2b50: 6f 72 64 65 72 3d 22 31 22 3e 0d 0a 3c 2f 74 64 order="1">..</td
2b60: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
2b70: 0d 0a 3c 68 33 3e 46 69 6e 61 6c 20 63 6f 6e 73 ..<h3>Final cons
2b80: 69 64 65 72 61 74 69 6f 6e 73 20 61 6e 64 20 63 iderations and c
2b90: 6f 6e 63 6c 75 73 69 6f 6e 73 3c 2f 68 33 3e 0d onclusions</h3>.
2ba0: 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 41 67 .<ol>..<li><b>Ag
2bb0: 72 69 63 75 6c 74 75 72 65 3c 2f 62 3e 3a 20 61 riculture</b>: a
2bc0: 66 74 65 72 20 69 74 73 20 72 65 6c 6f 63 61 74 fter its relocat
2bd0: 69 6f 6e 20 53 69 63 69 6c 79 20 77 69 6c 6c 20 ion Sicily will
2be0: 67 61 69 6e 20 6d 75 63 68 20 6d 6f 72 65 20 61 gain much more a
2bf0: 67 72 69 63 75 6c 74 75 72 61 6c 20 6c 61 6e 64 gricultural land
2c00: 20 61 6e 64 20 77 69 6c 6c 20 65 6e 6a 6f 79 20 and will enjoy
2c10: 61 20 6d 6f 72 65 20 66 61 76 6f 75 72 61 62 6c a more favourabl
2c20: 65 20 63 6c 69 6d 61 74 65 3a 20 73 74 69 6c 6c e climate: still
2c30: 20 73 75 6e 6e 79 20 61 6e 64 20 77 61 72 6d 20 sunny and warm
2c40: 62 75 74 20 6d 75 63 68 20 6c 65 73 73 20 61 72 but much less ar
2c50: 69 64 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 77 69 id.<br>..This wi
2c60: 6c 6c 20 63 65 72 74 61 69 6e 6c 79 20 73 75 73 ll certainly sus
2c70: 74 61 69 6e 20 61 20 6e 6f 74 69 63 65 61 62 6c tain a noticeabl
2c80: 65 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 6f 66 e development of
2c90: 20 6d 61 6e 79 20 65 63 6f 6e 6f 6d 69 63 20 61 many economic a
2ca0: 63 74 69 76 69 74 69 65 73 2e 3c 2f 6c 69 3e 0d ctivities.</li>.
2cb0: 0a 3c 6c 69 3e 3c 62 3e 54 72 61 6e 73 70 6f 72 .<li><b>Transpor
2cc0: 74 61 74 69 6f 6e 20 73 79 73 74 65 6d 73 3c 2f tation systems</
2cd0: 62 3e 3a 20 74 68 65 20 73 75 67 67 65 73 74 65 b>: the suggeste
2ce0: 64 20 6e 65 77 20 6c 61 79 6f 75 74 20 66 6f 72 d new layout for
2cf0: 20 74 68 65 20 4c 6f 77 65 72 20 54 79 72 72 68 the Lower Tyrrh
2d00: 65 6e 69 61 6e 20 53 65 61 20 73 74 72 6f 6e 67 enian Sea strong
2d10: 6c 79 20 66 61 63 69 6c 69 74 61 74 65 73 20 74 ly facilitates t
2d20: 68 65 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 6f he development o
2d30: 66 20 6d 61 72 69 74 69 6d 65 20 74 72 61 6e 73 f maritime trans
2d40: 70 6f 72 74 73 2e 20 53 69 63 69 6c 79 20 63 6f ports. Sicily co
2d50: 75 6c 64 20 6e 6f 77 20 62 65 63 6f 6d 65 20 74 uld now become t
2d60: 68 65 20 63 65 6e 74 72 61 6c 20 68 75 62 20 6f he central hub o
2d70: 66 20 61 20 68 69 67 68 6c 79 20 65 66 66 69 63 f a highly effic
2d80: 69 65 6e 74 20 6e 65 74 77 6f 72 6b 20 6f 66 20 ient network of
2d90: 68 69 67 68 2d 73 70 65 65 64 20 61 6e 64 20 68 high-speed and h
2da0: 69 67 68 2d 66 72 65 71 75 65 6e 63 79 20 66 65 igh-frequency fe
2db0: 72 72 79 20 63 6f 6e 6e 65 63 74 69 6f 6e 73 3a rry connections:
2dc0: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 50 61 6c 65 ..<ul>..<li>Pale
2dd0: 72 6d 6f 20 77 69 6c 6c 20 6e 6f 77 20 64 69 72 rmo will now dir
2de0: 65 63 74 6c 79 20 66 61 63 65 20 4e 61 70 6c 65 ectly face Naple
2df0: 73 3b 20 43 69 76 69 74 61 76 65 63 63 68 69 61 s; Civitavecchia
2e00: 20 28 52 6f 6d 65 29 20 73 65 65 6d 73 20 74 6f (Rome) seems to
2e10: 20 62 65 20 61 20 73 65 63 6f 6e 64 20 6f 62 76 be a second obv
2e20: 69 6f 75 73 20 74 65 72 6d 69 6e 61 6c 20 66 6f ious terminal fo
2e30: 72 20 64 69 72 65 63 74 20 63 6f 6e 6e 65 63 74 r direct connect
2e40: 69 6f 6e 73 20 6c 65 61 64 69 6e 67 20 74 6f 20 ions leading to
2e50: 43 65 6e 74 72 61 6c 20 49 74 61 6c 79 2e 3c 2f Central Italy.</
2e60: 6c 69 3e 0d 0a 3c 6c 69 3e 4d 65 73 73 69 6e 61 li>..<li>Messina
2e70: 20 77 69 6c 6c 20 61 63 71 75 69 72 65 20 61 20 will acquire a
2e80: 64 65 63 69 73 69 76 65 20 73 74 72 61 74 65 67 decisive strateg
2e90: 69 63 20 72 6f 6c 65 2c 20 61 6e 64 20 77 69 6c ic role, and wil
2ea0: 6c 20 62 65 63 6f 6d 65 20 74 68 65 20 74 65 72 l become the ter
2eb0: 6d 69 6e 61 6c 20 66 6f 72 20 66 65 72 72 79 20 minal for ferry
2ec0: 63 6f 6e 6e 65 63 74 69 6f 6e 73 20 6c 65 61 64 connections lead
2ed0: 69 6e 67 20 74 6f 20 43 65 6e 74 72 61 6c 20 61 ing to Central a
2ee0: 6e 64 20 4e 6f 72 74 68 65 72 6e 20 49 74 61 6c nd Northern Ital
2ef0: 79 3a 20 43 69 76 69 74 61 76 65 63 63 68 69 61 y: Civitavecchia
2f00: 2c 20 4c 65 67 68 6f 72 6e 20 61 6e 64 20 47 65 , Leghorn and Ge
2f10: 6e 6f 61 20 61 72 65 20 74 68 65 20 6f 62 76 69 noa are the obvi
2f20: 6f 75 73 20 64 65 73 74 69 6e 61 74 69 6f 6e 73 ous destinations
2f30: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 41 20 6c 65 .</li>..<li>A le
2f40: 73 73 20 72 65 6c 65 76 61 6e 74 20 28 62 75 74 ss relevant (but
2f50: 20 61 6e 79 77 61 79 20 69 6e 74 65 72 65 73 74 anyway interest
2f60: 69 6e 67 29 20 66 65 72 72 79 20 6c 69 6e 6b 20 ing) ferry link
2f70: 77 69 6c 6c 20 6a 6f 69 6e 20 54 72 61 70 61 6e will join Trapan
2f80: 69 20 61 6e 64 20 52 65 67 67 69 6f 20 43 61 6c i and Reggio Cal
2f90: 61 62 72 69 61 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 abria.</li>..<li
2fa0: 3e 53 61 72 64 69 6e 69 61 20 77 69 6c 6c 20 73 >Sardinia will s
2fb0: 74 72 6f 6e 67 6c 79 20 62 65 6e 65 66 69 74 20 trongly benefit
2fc0: 66 72 6f 6d 20 74 68 65 20 6e 65 77 20 6c 61 79 from the new lay
2fd0: 6f 75 74 3b 20 43 61 67 6c 69 61 72 69 20 77 69 out; Cagliari wi
2fe0: 6c 6c 20 62 65 20 64 69 72 65 63 74 6c 79 20 63 ll be directly c
2ff0: 6f 6e 6e 65 63 74 65 64 20 74 6f 20 53 79 72 61 onnected to Syra
3000: 63 75 73 65 20 28 6f 72 20 6d 61 79 20 62 65 20 cuse (or may be
3010: 41 75 67 75 73 74 61 29 2c 20 61 6e 64 20 4f 6c Augusta), and Ol
3020: 62 69 61 20 74 6f 20 4d 65 73 73 69 6e 61 2e 3c bia to Messina.<
3030: 62 72 3e 54 68 69 73 20 6d 65 61 6e 73 20 64 65 br>This means de
3040: 66 69 6e 69 74 65 6c 79 20 62 72 65 61 6b 69 6e finitely breakin
3050: 67 20 74 68 65 20 73 65 63 75 6c 61 72 20 69 6e g the secular in
3060: 73 75 6c 61 74 69 6f 6e 20 6f 66 20 53 61 72 64 sulation of Sard
3070: 69 6e 69 61 2c 20 74 68 61 74 20 77 69 6c 6c 20 inia, that will
3080: 6e 6f 77 20 73 74 61 72 74 20 65 6e 6a 6f 79 69 now start enjoyi
3090: 6e 67 20 61 20 73 74 72 6f 6e 67 65 72 20 61 6e ng a stronger an
30a0: 64 20 6d 6f 72 65 20 65 66 66 65 63 74 69 76 65 d more effective
30b0: 20 69 6e 74 65 67 72 61 74 69 6f 6e 20 77 69 74 integration wit
30c0: 68 20 53 6f 75 74 68 65 72 6e 20 49 74 61 6c 79 h Southern Italy
30d0: 2e 3c 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e 4c 61 73 .</li> ..<li>Las
30e0: 74 20 62 75 74 20 6e 6f 74 20 6c 65 61 73 74 3a t but not least:
30f0: 20 61 74 20 61 20 6d 6f 72 65 20 73 74 72 61 74 at a more strat
3100: 65 67 69 63 20 6c 65 76 65 6c 20 69 74 27 73 20 egic level it's
3110: 61 62 73 6f 6c 75 74 65 6c 79 20 6f 62 76 69 6f absolutely obvio
3120: 75 73 20 74 68 61 74 20 6e 6f 77 20 73 75 70 65 us that now supe
3130: 72 74 61 6e 6b 65 72 73 2c 20 62 69 67 20 63 6f rtankers, big co
3140: 6e 74 61 69 6e 65 72 20 73 68 69 70 73 20 61 6e ntainer ships an
3150: 64 20 63 72 75 69 73 65 20 6c 69 6e 65 72 73 20 d cruise liners
3160: 63 61 6e 20 66 72 65 65 6c 79 20 63 69 72 63 75 can freely circu
3170: 6d 6e 61 76 69 67 61 74 65 20 53 69 63 69 6c 79 mnavigate Sicily
3180: 20 69 6e 20 61 6e 79 20 64 69 72 65 63 74 69 6f in any directio
3190: 6e 20 75 6e 64 65 72 20 75 6e 63 6f 6d 70 72 6f n under uncompro
31a0: 6d 69 73 65 64 20 73 61 66 65 74 79 20 63 6f 6e mised safety con
31b0: 64 69 74 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 41 6e ditions.<br>..An
31c0: 64 20 63 6f 6e 73 65 71 75 65 6e 74 6c 79 20 61 d consequently a
31d0: 6c 6c 20 54 79 72 72 68 65 6e 69 61 6e 20 68 61 ll Tyrrhenian ha
31e0: 72 62 6f 72 73 20 77 69 6c 6c 20 6e 6f 77 20 62 rbors will now b
31f0: 65 20 64 69 72 65 63 74 6c 79 20 63 6f 6e 6e 65 e directly conne
3200: 63 74 65 64 20 62 6f 74 68 20 74 6f 20 45 61 73 cted both to Eas
3210: 74 65 72 6e 20 61 6e 64 20 57 65 73 74 65 72 6e tern and Western
3220: 20 4d 65 64 69 74 65 72 72 61 6e 65 61 6e 3a 20 Mediterranean:
3230: 74 68 69 73 20 77 69 6c 6c 20 73 75 72 65 6c 79 this will surely
3240: 20 69 6e 64 75 63 65 20 61 20 72 65 6d 61 72 6b induce a remark
3250: 61 62 6c 65 20 67 72 6f 77 74 68 20 69 6e 20 74 able growth in t
3260: 68 65 20 76 6f 6c 75 6d 65 73 20 6f 66 20 69 6e he volumes of in
3270: 74 65 72 6e 61 74 69 6f 6e 61 6c 20 74 72 61 66 ternational traf
3280: 66 69 63 73 20 74 68 65 79 20 63 6f 75 6c 64 20 fics they could
3290: 70 6f 74 65 6e 74 69 61 6c 6c 79 20 61 74 74 72 potentially attr
32a0: 61 63 74 2e 3c 2f 6c 69 3e 20 0d 0a 3c 2f 75 6c act.</li> ..</ul
32b0: 3e 3c 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e 3c 62 3e ></li> ..<li><b>
32c0: 48 65 61 76 79 20 69 6e 64 75 73 74 72 79 3c 2f Heavy industry</
32d0: 62 3e 3a 20 74 68 65 20 6e 65 77 20 74 72 61 6e b>: the new tran
32e0: 73 70 6f 72 74 61 74 69 6f 6e 20 73 79 73 74 65 sportation syste
32f0: 6d 20 73 74 72 6f 6e 67 6c 79 20 63 65 6e 74 65 m strongly cente
3300: 72 65 64 20 61 72 6f 75 6e 64 20 6d 61 72 69 74 red around marit
3310: 69 6d 65 20 63 6f 6d 6d 75 6e 69 63 61 74 69 6f ime communicatio
3320: 6e 73 20 77 69 6c 6c 20 73 75 72 65 6c 79 20 69 ns will surely i
3330: 6e 64 75 63 65 20 61 6e 20 61 63 74 69 76 65 20 nduce an active
3340: 72 65 62 69 72 74 68 20 6f 66 20 73 68 69 70 79 rebirth of shipy
3350: 61 72 64 73 2c 20 61 20 66 6c 6f 75 72 69 73 68 ards, a flourish
3360: 69 6e 67 20 74 72 61 64 69 74 69 6f 6e 61 6c 20 ing traditional
3370: 65 78 63 65 6c 6c 65 6e 63 65 20 6f 66 20 6d 61 excellence of ma
3380: 6e 79 20 73 6f 75 74 68 65 72 6e 20 72 65 67 69 ny southern regi
3390: 6f 6e 73 20 69 6e 20 70 61 73 74 20 74 69 6d 65 ons in past time
33a0: 73 20 62 75 74 20 6e 6f 77 61 64 61 79 73 20 61 s but nowadays a
33b0: 20 64 65 63 6c 69 6e 69 6e 67 20 61 63 74 69 76 declining activ
33c0: 69 74 79 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c ity.</li>..<li><
33d0: 62 3e 54 6f 75 72 69 73 6d 3c 2f 62 3e 3a 20 61 b>Tourism</b>: a
33e0: 20 72 65 61 72 72 61 6e 67 65 64 20 4c 6f 77 65 rearranged Lowe
33f0: 72 20 54 79 72 72 68 65 6e 69 61 6e 20 53 65 61 r Tyrrhenian Sea
3400: 20 77 69 6c 6c 20 63 65 72 74 61 69 6e 6c 79 20 will certainly
3410: 70 72 6f 6d 6f 74 65 20 61 20 73 74 72 6f 6e 67 promote a strong
3420: 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 6f 66 20 development of
3430: 69 6e 74 65 72 6e 61 74 69 6f 6e 61 6c 20 74 6f international to
3440: 75 72 69 73 6d 2e 3c 62 72 3e 0d 0a 49 74 27 73 urism.<br>..It's
3450: 20 77 6f 72 74 68 20 6e 6f 74 69 6e 67 20 74 68 worth noting th
3460: 61 74 20 74 68 65 20 70 72 6f 70 6f 73 65 64 20 at the proposed
3470: 6c 61 79 6f 75 74 20 77 69 6c 6c 20 67 69 76 65 layout will give
3480: 20 62 69 72 74 68 20 74 6f 20 61 20 77 6f 6e 64 birth to a wond
3490: 65 72 66 75 6c 20 69 73 6c 61 6e 64 20 67 72 6f erful island gro
34a0: 75 70 20 65 78 74 65 6e 64 69 6e 67 20 62 65 74 up extending bet
34b0: 77 65 65 6e 20 53 69 63 69 6c 79 20 61 6e 64 20 ween Sicily and
34c0: 73 6f 75 74 68 65 72 6e 20 4c 61 7a 69 6f 20 2d southern Lazio -
34d0: 20 43 61 6d 70 61 6e 69 61 3b 20 74 68 65 20 50 Campania; the P
34e0: 6f 6e 74 69 6e 65 2c 20 41 65 6f 6c 69 61 6e 20 ontine, Aeolian
34f0: 61 6e 64 20 47 75 6c 66 20 6f 66 20 4e 61 70 6c and Gulf of Napl
3500: 65 73 20 69 73 6c 61 6e 64 73 20 77 69 6c 6c 20 es islands will
3510: 62 65 20 70 72 61 63 74 69 63 61 6c 6c 79 20 6d be practically m
3520: 65 72 67 65 64 20 69 6e 74 6f 20 61 20 73 69 6e erged into a sin
3530: 67 6c 65 20 61 72 63 68 69 70 65 6c 61 67 6f 2e gle archipelago.
3540: 3c 62 72 3e 0d 0a 53 65 76 65 72 61 6c 20 6f 66 <br>..Several of
3550: 20 74 68 65 73 65 20 69 73 6c 61 6e 64 73 20 61 these islands a
3560: 63 74 75 61 6c 6c 79 20 61 72 65 20 61 63 74 69 ctually are acti
3570: 76 65 20 76 6f 6c 63 61 6e 6f 65 73 2c 20 61 6e ve volcanoes, an
3580: 64 20 74 68 65 20 6e 65 77 20 69 73 6c 61 6e 64 d the new island
3590: 20 63 68 61 69 6e 20 77 69 6c 6c 20 64 69 72 65 chain will dire
35a0: 63 74 6c 79 20 6a 6f 69 6e 20 4d 6f 75 6e 74 20 ctly join Mount
35b0: 45 74 6e 61 20 61 6e 64 20 4d 6f 75 6e 74 20 56 Etna and Mount V
35c0: 65 73 75 76 69 75 73 2e 3c 62 72 3e 0d 0a 53 6f esuvius.<br>..So
35d0: 20 74 68 69 73 20 61 72 65 61 20 77 69 6c 6c 20 this area will
35e0: 72 65 70 72 65 73 65 6e 74 20 74 68 65 20 6d 6f represent the mo
35f0: 73 74 20 69 6d 70 72 65 73 73 69 76 65 20 76 6f st impressive vo
3600: 6c 63 61 6e 69 63 20 66 69 65 6c 64 20 6f 66 20 lcanic field of
3610: 45 75 72 6f 70 65 20 61 6e 64 20 77 69 6c 6c 20 Europe and will
3620: 63 65 72 74 61 69 6e 6c 79 20 62 65 63 6f 6d 65 certainly become
3630: 20 61 20 73 74 72 6f 6e 67 20 74 6f 75 72 69 73 a strong touris
3640: 74 69 63 20 61 74 74 72 61 63 74 69 6f 6e 20 74 tic attraction t
3650: 68 61 6e 6b 73 20 74 6f 20 69 74 73 20 6e 69 63 hanks to its nic
3660: 65 6c 79 20 73 75 6e 6e 79 20 77 65 61 74 68 65 ely sunny weathe
3670: 72 20 61 6e 64 20 70 6c 65 61 73 61 6e 74 20 63 r and pleasant c
3680: 6c 69 6d 61 74 65 2e 0d 0a 3c 2f 6c 69 3e 0d 0a limate...</li>..
3690: 3c 6c 69 3e 3c 62 3e 49 6e 74 65 72 6e 61 6c 20 <li><b>Internal
36a0: 63 6f 6d 6d 65 72 63 65 3c 2f 62 3e 3a 20 77 65 commerce</b>: we
36b0: 20 63 61 6e 20 65 61 73 69 6c 79 20 66 6f 72 65 can easily fore
36c0: 63 61 73 74 20 61 20 73 74 72 6f 6e 67 20 67 72 cast a strong gr
36d0: 6f 77 74 68 20 69 6e 20 76 6f 6c 75 6d 65 20 6f owth in volume o
36e0: 66 20 69 6e 74 65 72 6e 61 6c 20 65 78 63 68 61 f internal excha
36f0: 6e 67 65 73 20 74 68 61 6e 6b 73 20 74 6f 20 74 nges thanks to t
3700: 68 65 20 62 65 74 74 65 72 20 63 6f 6e 6e 65 63 he better connec
3710: 74 69 76 69 74 79 20 62 61 73 65 64 20 6f 6e 20 tivity based on
3720: 6d 61 72 69 74 69 6d 65 20 74 72 61 6e 73 70 6f maritime transpo
3730: 72 74 73 2e 3c 62 72 3e 20 0d 0a 4a 75 73 74 20 rts.<br> ..Just
3740: 61 20 73 69 6e 67 6c 65 20 65 78 61 6d 70 6c 65 a single example
3750: 3a 20 53 61 72 64 69 6e 69 61 20 73 68 6f 75 6c : Sardinia shoul
3760: 64 20 6e 6f 77 20 62 65 20 61 62 6c 65 20 74 6f d now be able to
3770: 20 65 78 70 6f 72 74 20 69 74 73 20 66 69 6e 65 export its fine
3780: 73 74 20 73 68 65 65 70 20 63 68 65 65 73 65 20 st sheep cheese
3790: 6f 6e 20 43 61 6c 61 62 72 69 61 6e 20 6d 61 72 on Calabrian mar
37a0: 6b 65 74 73 20 77 68 69 6c 73 74 20 43 61 6c 61 kets whilst Cala
37b0: 62 72 69 61 20 63 6f 75 6c 64 20 66 72 65 65 6c bria could freel
37c0: 79 20 65 78 70 6f 72 74 20 69 74 73 20 72 65 6e y export its ren
37d0: 6f 77 6e 20 72 65 64 20 68 6f 74 20 63 68 69 6c own red hot chil
37e0: 6c 79 20 70 65 70 70 65 72 73 20 74 6f 20 53 61 ly peppers to Sa
37f0: 72 64 69 6e 69 61 3b 20 6e 6f 74 20 6f 6e 6c 79 rdinia; not only
3800: 20 62 6f 74 68 20 72 65 67 69 6f 6e 73 20 77 69 both regions wi
3810: 6c 6c 20 77 69 64 65 6c 79 20 62 65 6e 65 66 69 ll widely benefi
3820: 74 20 66 72 6f 6d 20 69 6e 63 72 65 61 73 65 64 t from increased
3830: 20 65 78 63 68 61 6e 67 65 20 76 6f 6c 75 6d 65 exchange volume
3840: 73 2c 20 62 75 74 20 53 69 63 69 6c 79 20 61 73 s, but Sicily as
3850: 20 77 65 6c 6c 20 77 69 6c 6c 20 74 61 6b 65 20 well will take
3860: 70 72 6f 66 69 74 20 66 72 6f 6d 20 66 6c 6f 75 profit from flou
3870: 72 69 73 68 69 6e 67 20 6c 6f 67 69 73 74 69 63 rishing logistic
3880: 20 61 6e 64 20 62 79 20 6f 74 68 65 72 20 61 63 and by other ac
3890: 74 69 76 69 74 69 65 73 20 62 61 73 65 64 20 6f tivities based o
38a0: 6e 20 63 6f 6d 6d 65 72 63 69 61 6c 20 69 6e 74 n commercial int
38b0: 65 72 6d 65 64 69 61 74 69 6f 6e 20 73 65 72 76 ermediation serv
38c0: 69 63 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e ices.</li>..<li>
38d0: 3c 62 3e 50 72 61 63 74 69 63 61 6c 20 72 65 61 <b>Practical rea
38e0: 6c 69 7a 61 74 69 6f 6e 3c 2f 62 3e 3a 20 74 68 lization</b>: th
38f0: 65 20 70 72 65 73 65 6e 74 20 73 74 75 64 79 20 e present study
3900: 63 6c 65 61 72 6c 79 20 64 65 6d 6f 6e 73 74 72 clearly demonstr
3910: 61 74 65 73 20 74 68 61 74 20 74 68 65 72 65 20 ates that there
3920: 69 73 20 6e 6f 74 68 69 6e 67 20 69 6e 20 4d 61 is nothing in Ma
3930: 74 68 65 6d 61 74 69 63 73 2c 20 47 65 6f 6d 65 thematics, Geome
3940: 74 72 79 20 6f 72 20 47 65 6f 67 72 61 70 68 79 try or Geography
3950: 20 66 6f 72 62 69 64 64 69 6e 67 20 74 68 65 20 forbidding the
3960: 70 72 61 63 74 69 63 61 6c 20 72 65 61 6c 69 7a practical realiz
3970: 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 73 75 67 ation of the sug
3980: 67 65 73 74 65 64 20 69 64 65 61 2e 3c 62 72 3e gested idea.<br>
3990: 0d 0a 55 6e 68 61 70 70 69 6c 79 20 74 68 65 20 ..Unhappily the
39a0: 63 75 72 72 65 6e 74 20 73 74 61 74 65 20 6f 66 current state of
39b0: 20 74 68 65 20 61 72 74 20 69 6e 20 47 65 6f 6c the art in Geol
39c0: 6f 67 79 20 73 74 69 6c 6c 20 70 6f 73 65 73 20 ogy still poses
39d0: 6d 61 6e 79 20 70 75 7a 7a 6c 69 6e 67 20 70 72 many puzzling pr
39e0: 6f 62 6c 65 6d 73 20 6e 6f 74 20 79 65 74 20 66 oblems not yet f
39f0: 75 6c 6c 79 20 72 65 73 6f 6c 76 65 64 2e 3c 62 ully resolved.<b
3a00: 72 3e 0d 0a 41 6e 79 77 61 79 20 77 65 20 61 72 r>..Anyway we ar
3a10: 65 20 68 6f 70 65 66 75 6c 6c 79 20 65 78 70 65 e hopefully expe
3a20: 63 74 69 6e 67 20 74 68 61 74 20 66 75 74 75 72 cting that futur
3a30: 65 20 61 64 76 61 6e 63 65 6d 65 6e 74 73 20 69 e advancements i
3a40: 6e 20 54 65 63 74 6f 6e 69 63 73 20 77 69 6c 6c n Tectonics will
3a50: 20 70 6f 73 73 69 62 6c 79 20 61 6c 6c 6f 77 20 possibly allow
3a60: 74 6f 20 6f 76 65 72 63 6f 6d 65 20 61 6e 79 20 to overcome any
3a70: 72 65 6d 61 69 6e 69 6e 67 20 69 73 73 75 65 2e remaining issue.
3a80: 20 4d 6f 72 65 20 73 70 65 63 69 66 69 63 61 6c More specifical
3a90: 6c 79 20 61 20 62 65 74 74 65 72 20 6b 6e 6f 77 ly a better know
3aa0: 6c 65 64 67 65 20 6f 66 20 69 6e 74 65 72 61 63 ledge of interac
3ab0: 74 69 6f 6e 73 20 62 65 74 77 65 65 6e 20 74 68 tions between th
3ac0: 65 20 63 72 75 73 74 20 61 6e 64 20 74 68 65 20 e crust and the
3ad0: 75 70 70 65 72 20 6d 61 6e 74 6c 65 20 61 6c 6f upper mantle alo
3ae0: 6e 67 20 74 68 65 20 4d 6f 68 6f 20 61 6e 64 20 ng the Moho and
3af0: 61 20 64 65 65 70 65 72 20 63 6f 6d 70 72 65 68 a deeper compreh
3b00: 65 6e 73 69 6f 6e 20 6f 66 20 74 68 65 20 6d 69 ension of the mi
3b10: 63 72 6f 2d 70 6c 61 71 75 65 73 20 6d 65 63 68 cro-plaques mech
3b20: 61 6e 69 63 73 20 77 69 6c 6c 20 63 65 72 74 61 anics will certa
3b30: 69 6e 6c 79 20 68 65 6c 70 3b 20 77 65 20 61 72 inly help; we ar
3b40: 65 20 72 61 74 68 65 72 20 63 6f 6e 66 69 64 65 e rather confide
3b50: 6e 74 20 69 6e 20 66 75 74 75 72 65 20 72 65 73 nt in future res
3b60: 65 61 72 63 68 20 61 63 68 69 65 76 65 6d 65 6e earch achievemen
3b70: 74 73 20 6f 6e 20 74 68 65 73 65 20 66 69 65 6c ts on these fiel
3b80: 64 73 2e 0d 0a 3c 2f 6f 6c 3e 0d 0a 3c 2f 74 64 ds...</ol>..</td
3b90: 3e 3c 74 64 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d ><td>..<img src=
3ba0: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
3bb0: 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 a-gis.it/gaia-si
3bc0: 6e 73 2f 61 66 66 69 6e 65 2d 70 69 63 73 2f 69 ns/affine-pics/i
3bd0: 74 61 6c 79 2d 32 2e 30 2e 70 6e 67 22 20 61 6c taly-2.0.png" al
3be0: 74 3d 22 69 74 61 6c 79 2d 32 2e 30 22 20 62 6f t="italy-2.0" bo
3bf0: 72 64 65 72 3d 22 31 22 3e 0d 0a 3c 2f 74 64 3e rder="1">..</td>
3c00: 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 3c </tr>..</table><
3c10: 62 72 3e 3c 68 72 3e 0d 0a 3c 68 32 3e 42 6f 72 br><hr>..<h2>Bor
3c20: 69 6e 67 20 4d 61 74 68 3a 20 61 20 6d 6f 72 65 ing Math: a more
3c30: 20 66 6f 72 6d 61 6c 20 70 72 65 73 65 6e 74 61 formal presenta
3c40: 74 69 6f 6e 3c 2f 68 32 3e 0d 0a 50 6c 61 79 74 tion</h2>..Playt
3c50: 69 6d 65 27 73 20 6f 76 65 72 3a 20 77 65 27 6c ime's over: we'l
3c60: 6c 20 6e 6f 77 20 73 74 61 72 74 20 61 20 6d 6f l now start a mo
3c70: 73 74 20 73 65 72 69 6f 75 73 20 65 78 70 6c 61 st serious expla
3c80: 6e 61 74 69 6f 6e 2e 3c 62 72 3e 3c 62 72 3e 0d nation.<br><br>.
3c90: 0a 41 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 .An Affine Trans
3ca0: 66 6f 72 6d 61 74 69 6f 6e 20 63 61 6e 20 62 65 formation can be
3cb0: 20 72 65 70 72 65 73 65 6e 74 65 64 20 69 6e 20 represented in
3cc0: 74 68 65 20 66 6f 72 6d 20 6f 66 20 61 20 73 71 the form of a sq
3cd0: 75 61 72 65 20 6d 61 74 72 69 78 3b 20 74 68 65 uare matrix; the
3ce0: 20 73 69 6d 70 6c 65 72 20 3c 62 3e 32 44 3c 2f simpler <b>2D</
3cf0: 62 3e 20 63 61 73 65 20 72 65 71 75 69 72 65 73 b> case requires
3d00: 20 61 20 3c 62 3e 33 20 78 20 33 3c 2f 62 3e 20 a <b>3 x 3</b>
3d10: 6d 61 74 72 69 78 2c 20 61 6e 64 20 74 68 65 20 matrix, and the
3d20: 66 6f 6c 6c 6f 77 69 6e 67 73 20 61 72 65 20 74 followings are t
3d30: 68 65 20 70 6f 73 73 69 62 6c 65 20 61 72 72 61 he possible arra
3d40: 6e 67 65 6d 65 6e 74 73 20 63 6f 72 72 65 73 70 ngements corresp
3d50: 6f 6e 64 69 6e 67 20 74 6f 20 65 61 63 68 20 65 onding to each e
3d60: 6c 65 6d 65 6e 74 61 72 79 20 74 72 61 6e 73 66 lementary transf
3d70: 6f 72 6d 61 74 69 6f 6e 3a 3c 62 72 3e 3c 62 72 ormation:<br><br
3d80: 3e 0d 0a 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e >..<table>..<tr>
3d90: 3c 74 64 20 72 6f 77 73 70 61 6e 3d 22 34 22 20 <td rowspan="4"
3da0: 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e valign="middle">
3db0: 47 65 6e 65 72 61 6c 20 6c 61 79 6f 75 74 3c 2f General layout</
3dc0: 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c td>..<td>/</td><
3dd0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
3de0: 22 3e 3c 62 3e 61 3c 2f 62 3e 3c 2f 74 64 3e 3c "><b>a</b></td><
3df0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
3e00: 22 3e 3c 62 3e 62 3c 2f 62 3e 3c 2f 74 64 3e 3c "><b>b</b></td><
3e10: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
3e20: 22 3e 3c 62 3e 78 6f 66 66 3c 2f 62 3e 3c 2f 74 "><b>xoff</b></t
3e30: 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 d><td>\</td></tr
3e40: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
3e50: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3e60: 65 72 22 3e 3c 62 3e 64 3c 2f 62 3e 3c 2f 74 64 er"><b>d</b></td
3e70: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3e80: 65 72 22 3e 3c 62 3e 65 3c 2f 62 3e 3c 2f 74 64 er"><b>e</b></td
3e90: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3ea0: 65 72 22 3e 3c 62 3e 79 6f 66 66 3c 2f 62 3e 3c er"><b>yoff</b><
3eb0: 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f /td><td>|</td></
3ec0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f tr>..<tr><td>\</
3ed0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
3ee0: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
3ef0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
3f00: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
3f10: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
3f20: 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>/</td></tr>..<
3f30: 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 tr><td colspan="
3f40: 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 5"><hr></td></tr
3f50: 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 >..<tr><td rowsp
3f60: 61 6e 3d 22 34 22 20 76 61 6c 69 67 6e 3d 22 6d an="4" valign="m
3f70: 69 64 64 6c 65 22 3e 49 64 65 6e 74 69 74 79 3c iddle">Identity<
3f80: 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e /td>..<td>/</td>
3f90: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
3fa0: 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">1</td><td ali
3fb0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
3fc0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
3fd0: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 5c ter">0</td><td>\
3fe0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
3ff0: 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c <td>|</td><td al
4000: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
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 31 3c 2f 74 64 3e 3c 74 64 20 nter">1</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 3e 7c 3c 2f 74 64 3e 3c </td><td>|</td><
4050: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c /tr>..<tr><td>\<
4060: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4070: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4080: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4090: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
40a0: 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c "center">1</td><
40b0: 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>/</td></tr>..
40c0: 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d <tr><td colspan=
40d0: 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 "5"><hr></td></t
40e0: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 r>..<tr><td rows
40f0: 70 61 6e 3d 22 34 22 20 76 61 6c 69 67 6e 3d 22 pan="4" valign="
4100: 6d 69 64 64 6c 65 22 3e 54 72 61 6e 73 6c 61 74 middle">Translat
4110: 65 28 3c 62 3e 74 78 3c 2f 62 3e 2c 20 3c 62 3e e(<b>tx</b>, <b>
4120: 74 79 3c 2f 62 3e 29 26 6e 62 73 70 3b 26 6e 62 ty</b>) &nb
4130: 73 70 3b 26 6e 62 73 70 3b 3c 2f 74 64 3e 0d 0a sp; </td>..
4140: 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c <td>/</td><td al
4150: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f ign="center">1</
4160: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4170: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4180: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
4190: 62 3e 74 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 b>tx</b></td><td
41a0: 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >\</td></tr>..<t
41b0: 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 r><td>|</td><td
41c0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
41d0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
41e0: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
41f0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4200: 3e 3c 62 3e 74 79 3c 2f 62 3e 3c 2f 74 64 3e 3c ><b>ty</b></td><
4210: 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>|</td></tr>..
4220: 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 <tr><td>\</td><t
4230: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4240: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
4250: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
4260: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4270: 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f r">1</td><td>/</
4280: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
4290: 64 20 63 6f 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 d colspan="5"><h
42a0: 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 r></td></tr>..<t
42b0: 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e 3d 22 34 r><td rowspan="4
42c0: 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 " valign="middle
42d0: 22 3e 53 63 61 6c 65 28 3c 62 3e 73 78 3c 2f 62 ">Scale(<b>sx</b
42e0: 3e 2c 20 3c 62 3e 73 79 3c 2f 62 3e 29 3c 2f 74 >, <b>sy</b>)</t
42f0: 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 d>..<td>/</td><t
4300: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4310: 3e 3c 62 3e 73 78 3c 2f 62 3e 3c 2f 74 64 3e 3c ><b>sx</b></td><
4320: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
4330: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
4340: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
4350: 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>\</td></tr>
4360: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
4370: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4380: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
4390: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 73 gn="center"><b>s
43a0: 79 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c y</b></td><td al
43b0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
43c0: 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 td><td>|</td></t
43d0: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 r>..<tr><td>\</t
43e0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
43f0: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 ter">0</td><td a
4400: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
4410: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4420: 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 enter">1</td><td
4430: 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >/</td></tr>..<t
4440: 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 35 r><td colspan="5
4450: 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e "><hr></td></tr>
4460: 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 ..<tr><td rowspa
4470: 6e 3d 22 34 22 20 76 61 6c 69 67 6e 3d 22 6d 69 n="4" valign="mi
4480: 64 64 6c 65 22 3e 52 6f 74 61 74 65 28 3c 62 3e ddle">Rotate(<b>
4490: 26 74 68 65 74 61 3b 3c 2f 62 3e 29 3c 2f 74 64 θ</b>)</td
44a0: 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 >..<td>/</td><td
44b0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
44c0: 3c 62 3e 63 6f 73 28 26 74 68 65 74 61 3b 29 3c <b>cos(θ)<
44d0: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
44e0: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 2d 73 n="center"><b>-s
44f0: 69 6e 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c in(θ)</b><
4500: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4510: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4520: 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >\</td></tr>..<t
4530: 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 r><td>|</td><td
4540: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
4550: 62 3e 73 69 6e 28 26 74 68 65 74 61 3b 29 3c 2f b>sin(θ)</
4560: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
4570: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 63 6f 73 ="center"><b>cos
4580: 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 (θ)</b></t
4590: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
45a0: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c ter">0</td><td>|
45b0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
45c0: 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c <td>\</td><td al
45d0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
45e0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
45f0: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4600: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
4610: 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c </td><td>/</td><
4620: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 2f /tr>..<tr><td></
4630: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c td></tr>..</tabl
4640: 65 3e 3c 62 72 3e 0d 0a 41 20 3c 62 3e 33 44 3c e><br>..A <b>3D<
4650: 2f 62 3e 20 61 66 66 69 6e 65 20 74 72 61 6e 73 /b> affine trans
4660: 66 6f 72 6d 61 74 69 6f 6e 20 72 65 71 75 69 72 formation requir
4670: 65 73 20 61 20 3c 62 3e 34 20 78 20 34 3c 2f 62 es a <b>4 x 4</b
4680: 3e 20 6d 61 74 72 69 78 2e 3c 62 72 3e 0d 0a 41 > matrix.<br>..A
4690: 73 20 79 6f 75 20 63 61 6e 20 65 61 73 69 6c 79 s you can easily
46a0: 20 6e 6f 74 69 63 65 20 74 68 65 72 65 20 69 73 notice there is
46b0: 20 61 6e 20 6f 62 76 69 6f 75 73 20 64 69 72 65 an obvious dire
46c0: 63 74 20 72 65 6c 61 74 69 6f 6e 20 62 65 74 77 ct relation betw
46d0: 65 65 6e 20 61 20 33 44 20 6d 61 74 72 69 78 20 een a 3D matrix
46e0: 61 6e 64 20 61 20 32 44 20 6d 61 74 72 69 78 3b and a 2D matrix;
46f0: 20 6e 6f 74 69 63 65 20 74 68 65 20 63 65 6c 6c notice the cell
4700: 73 20 73 68 6f 77 69 6e 67 20 61 20 67 72 61 79 s showing a gray
4710: 20 62 61 63 6b 67 72 6f 75 6e 64 2e 3c 62 72 3e background.<br>
4720: 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 3e 0d 0a 3c <br>..<table>..<
4730: 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e 3d 22 tr><td rowspan="
4740: 35 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 5" valign="middl
4750: 65 22 3e 47 65 6e 65 72 61 6c 20 6c 61 79 6f 75 e">General layou
4760: 74 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 t &nb
4770: 73 70 3b 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c sp;</td>..<td>/<
4780: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4790: 65 6e 74 65 72 22 3e 3c 62 3e 61 3c 2f 62 3e 3c enter"><b>a</b><
47a0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
47b0: 65 6e 74 65 72 22 3e 3c 62 3e 62 3c 2f 62 3e 3c enter"><b>b</b><
47c0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
47d0: 65 6e 74 65 72 22 20 62 67 63 6f 6c 6f 72 3d 22 enter" bgcolor="
47e0: 23 64 30 64 30 64 30 22 3e 3c 62 3e 63 3c 2f 62 #d0d0d0"><b>c</b
47f0: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
4800: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 78 6f 66 66 "center"><b>xoff
4810: 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f </b></td><td>\</
4820: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
4830: 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>|</td><td alig
4840: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 64 3c n="center"><b>d<
4850: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
4860: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 65 3c n="center"><b>e<
4870: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /b></td><td alig
4880: 6e 3d 22 63 65 6e 74 65 72 22 20 62 67 63 6f 6c n="center" bgcol
4890: 6f 72 3d 22 23 64 30 64 30 64 30 22 3e 3c 62 3e or="#d0d0d0"><b>
48a0: 66 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c f</b></td><td al
48b0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
48c0: 79 6f 66 66 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 yoff</b></td><td
48d0: 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >|</td></tr>..<t
48e0: 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 r><td>|</td><td
48f0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 20 62 align="center" b
4900: 67 63 6f 6c 6f 72 3d 22 23 64 30 64 30 64 30 22 gcolor="#d0d0d0"
4910: 3e 3c 62 3e 67 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 ><b>g</b></td><t
4920: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4930: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 64 30 64 bgcolor="#d0d0d
4940: 30 22 3e 3c 62 3e 68 3c 2f 62 3e 3c 2f 74 64 3e 0"><b>h</b></td>
4950: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4960: 72 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 64 r" bgcolor="#d0d
4970: 30 64 30 22 3e 3c 62 3e 69 3c 2f 62 3e 3c 2f 74 0d0"><b>i</b></t
4980: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4990: 74 65 72 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ter" bgcolor="#d
49a0: 30 64 30 64 30 22 3e 3c 62 3e 7a 6f 66 66 3c 2f 0d0d0"><b>zoff</
49b0: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 b></td><td>|</td
49c0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
49d0: 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d \</td><td align=
49e0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
49f0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
4a00: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
4a10: 6e 3d 22 63 65 6e 74 65 72 22 20 62 67 63 6f 6c n="center" bgcol
4a20: 6f 72 3d 22 23 64 30 64 30 64 30 22 3e 30 3c 2f or="#d0d0d0">0</
4a30: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4a40: 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e nter">1</td><td>
4a50: 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 /</td></tr>..<tr
4a60: 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 35 22 ><td colspan="5"
4a70: 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d ><hr></td></tr>.
4a80: 0a 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e .<tr><td rowspan
4a90: 3d 22 35 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 ="5" valign="mid
4aa0: 64 6c 65 22 3e 49 64 65 6e 74 69 74 79 3c 2f 74 dle">Identity</t
4ab0: 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 d>..<td>/</td><t
4ac0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4ad0: 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >1</td><td align
4ae0: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
4af0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4b00: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
4b10: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
4b20: 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 d><td>\</td></tr
4b30: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
4b40: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4b50: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
4b60: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f ign="center">1</
4b70: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4b80: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4b90: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
4ba0: 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c </td><td>|</td><
4bb0: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c /tr>..<tr><td>\<
4bc0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4bd0: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4be0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4bf0: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
4c00: 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c "center">1</td><
4c10: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
4c20: 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 ">0</td><td>/</t
4c30: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
4c40: 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >\</td><td align
4c50: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
4c60: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4c70: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
4c80: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
4c90: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4ca0: 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f ter">1</td><td>/
4cb0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
4cc0: 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 35 22 3e <td colspan="5">
4cd0: 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a <hr></td></tr>..
4ce0: 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e 3d <tr><td rowspan=
4cf0: 22 35 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 "5" valign="midd
4d00: 6c 65 22 3e 54 72 61 6e 73 6c 61 74 65 28 3c 62 le">Translate(<b
4d10: 3e 74 78 3c 2f 62 3e 2c 20 3c 62 3e 74 79 3c 2f >tx</b>, <b>ty</
4d20: 62 3e 2c 20 3c 62 3e 74 7a 3c 2f 62 3e 29 26 6e b>, <b>tz</b>)&n
4d30: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b bsp;
4d40: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 </td>..<td>/</td
4d50: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
4d60: 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c er">1</td><td al
4d70: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
4d80: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
4d90: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
4da0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
4db0: 62 3e 74 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 b>tx</b></td><td
4dc0: 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >\</td></tr>..<t
4dd0: 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 r><td>|</td><td
4de0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
4df0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
4e00: 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 center">1</td><t
4e10: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
4e20: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
4e30: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 74 79 3c ="center"><b>ty<
4e40: 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 /b></td><td>|</t
4e50: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
4e60: 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >|</td><td align
4e70: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
4e80: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
4e90: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
4ea0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 gn="center">1</t
4eb0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4ec0: 74 65 72 22 3e 3c 62 3e 74 7a 3c 2f 62 3e 3c 2f ter"><b>tz</b></
4ed0: 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 td><td>|</td></t
4ee0: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 r>..<tr><td>\</t
4ef0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
4f00: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 ter">0</td><td a
4f10: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
4f20: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
4f30: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
4f40: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
4f50: 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 1</td><td>/</td>
4f60: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 </tr>..<tr><td c
4f70: 6f 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e 3c olspan="5"><hr><
4f80: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
4f90: 74 64 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 76 td rowspan="5" v
4fa0: 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e 53 align="middle">S
4fb0: 63 61 6c 65 28 3c 62 3e 73 78 3c 2f 62 3e 2c 20 cale(<b>sx</b>,
4fc0: 3c 62 3e 73 79 3c 2f 62 3e 2c 20 3c 62 3e 73 7a <b>sy</b>, <b>sz
4fd0: 3c 2f 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e </b>)</td>..<td>
4fe0: 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d /</td><td align=
4ff0: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 73 78 3c 2f "center"><b>sx</
5000: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
5010: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
5020: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5030: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
5040: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
5050: 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 d><td>\</td></tr
5060: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 >..<tr><td>|</td
5070: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
5080: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c er">0</td><td al
5090: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
50a0: 73 79 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 sy</b></td><td a
50b0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
50c0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
50d0: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
50e0: 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >|</td></tr>..<t
50f0: 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 r><td>|</td><td
5100: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
5110: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5120: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
5130: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5140: 3e 3c 62 3e 73 7a 3c 2f 62 3e 3c 2f 74 64 3e 3c ><b>sz</b></td><
5150: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5160: 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 ">0</td><td>|</t
5170: 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 d></tr>..<tr><td
5180: 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >\</td><td align
5190: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
51a0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
51b0: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 r">0</td><td ali
51c0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
51d0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
51e0: 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f ter">1</td><td>/
51f0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
5200: 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 35 22 3e <td colspan="5">
5210: 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a <hr></td></tr>..
5220: 3c 74 72 3e 3c 74 64 20 72 6f 77 73 70 61 6e 3d <tr><td rowspan=
5230: 22 35 22 20 76 61 6c 69 67 6e 3d 22 6d 69 64 64 "5" valign="midd
5240: 6c 65 22 3e 58 20 52 6f 6c 6c 28 3c 62 3e 26 74 le">X Roll(<b>&t
5250: 68 65 74 61 3b 3c 2f 62 3e 29 3c 2f 74 64 3e 0d heta;</b>)</td>.
5260: 0a 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 .<td>/</td><td a
5270: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c lign="center">1<
5280: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
5290: 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 enter">0</td><td
52a0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
52b0: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
52c0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
52d0: 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>\</td></tr>..
52e0: 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 <tr><td>|</td><t
52f0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5300: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
5310: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 63 6f 73 ="center"><b>cos
5320: 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 (θ)</b></t
5330: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5340: 74 65 72 22 3e 3c 62 3e 2d 73 69 6e 28 26 74 68 ter"><b>-sin(&th
5350: 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 eta;)</b></td><t
5360: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5370: 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 >0</td><td>|</td
5380: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
5390: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
53a0: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
53b0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
53c0: 22 3e 3c 62 3e 73 69 6e 28 26 74 68 65 74 61 3b "><b>sin(θ
53d0: 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c )</b></td><td al
53e0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
53f0: 63 6f 73 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e cos(θ)</b>
5400: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5410: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
5420: 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c d>|</td></tr>..<
5430: 74 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 tr><td>\</td><td
5440: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
5450: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
5460: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
5470: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5480: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
5490: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 n="center">1</td
54a0: 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>/</td></tr>
54b0: 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 ..<tr><td colspa
54c0: 6e 3d 22 35 22 3e 3c 68 72 3e 3c 2f 74 64 3e 3c n="5"><hr></td><
54d0: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 72 6f /tr>..<tr><td ro
54e0: 77 73 70 61 6e 3d 22 35 22 20 76 61 6c 69 67 6e wspan="5" valign
54f0: 3d 22 6d 69 64 64 6c 65 22 3e 59 20 52 6f 6c 6c ="middle">Y Roll
5500: 28 3c 62 3e 26 74 68 65 74 61 3b 3c 2f 62 3e 29 (<b>θ</b>)
5510: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2f 3c 2f 74 64 </td>..<td>/</td
5520: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
5530: 65 72 22 3e 3c 62 3e 63 6f 73 28 26 74 68 65 74 er"><b>cos(&thet
5540: 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 a;)</b></td><td
5550: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
5560: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5570: 63 65 6e 74 65 72 22 3e 3c 62 3e 73 69 6e 28 26 center"><b>sin(&
5580: 74 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e theta;)</b></td>
5590: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
55a0: 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f r">0</td><td>\</
55b0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
55c0: 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 d>|</td><td alig
55d0: 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 n="center">0</td
55e0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
55f0: 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 20 61 6c er">1</td><td al
5600: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f ign="center">0</
5610: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
5620: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e nter">0</td><td>
5630: 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 |</td></tr>..<tr
5640: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>|</td><td a
5650: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 lign="center"><b
5660: 3e 2d 73 69 6e 28 26 74 68 65 74 61 3b 29 3c 2f >-sin(θ)</
5670: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
5680: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
5690: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
56a0: 72 22 3e 3c 62 3e 63 6f 73 28 26 74 68 65 74 61 r"><b>cos(&theta
56b0: 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 ;)</b></td><td a
56c0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
56d0: 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f /td><td>|</td></
56e0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f tr>..<tr><td>\</
56f0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
5700: 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 nter">0</td><td
5710: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 align="center">0
5720: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5730: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
5740: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5750: 3e 31 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 >1</td><td>/</td
5760: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 ></tr>..<tr><td
5770: 63 6f 6c 73 70 61 6e 3d 22 35 22 3e 3c 68 72 3e colspan="5"><hr>
5780: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </td></tr>..<tr>
5790: 3c 74 64 20 72 6f 77 73 70 61 6e 3d 22 35 22 20 <td rowspan="5"
57a0: 76 61 6c 69 67 6e 3d 22 6d 69 64 64 6c 65 22 3e valign="middle">
57b0: 5a 20 52 6f 6c 6c 28 3c 62 3e 26 74 68 65 74 61 Z Roll(<b>&theta
57c0: 3b 3c 2f 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 ;</b>)</td>..<td
57d0: 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >/</td><td align
57e0: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 63 6f 73 ="center"><b>cos
57f0: 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 (θ)</b></t
5800: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5810: 74 65 72 22 3e 3c 62 3e 2d 73 69 6e 28 26 74 68 ter"><b>-sin(&th
5820: 65 74 61 3b 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 eta;)</b></td><t
5830: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5840: 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >0</td><td align
5850: 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e ="center">0</td>
5860: 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d <td>\</td></tr>.
5870: 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c .<tr><td>|</td><
5880: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5890: 22 3e 3c 62 3e 73 69 6e 28 26 74 68 65 74 61 3b "><b>sin(θ
58a0: 29 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c )</b></td><td al
58b0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
58c0: 63 6f 73 28 26 74 68 65 74 61 3b 29 3c 2f 62 3e cos(θ)</b>
58d0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
58e0: 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 center">0</td><t
58f0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
5900: 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 >0</td><td>|</td
5910: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
5920: 7c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d |</td><td align=
5930: 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 64 3e 3c "center">0</td><
5940: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
5950: 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ">0</td><td alig
5960: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 3c 2f 74 64 n="center">1</td
5970: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
5980: 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 3e 7c 3c er">0</td><td>|<
5990: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
59a0: 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 td>\</td><td ali
59b0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c 2f 74 gn="center">0</t
59c0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
59d0: 74 65 72 22 3e 30 3c 2f 74 64 3e 3c 74 64 20 61 ter">0</td><td a
59e0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 3c lign="center">0<
59f0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
5a00: 65 6e 74 65 72 22 3e 31 3c 2f 74 64 3e 3c 74 64 enter">1</td><td
5a10: 3e 2f 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >/</td></tr>..<t
5a20: 72 3e 3c 74 64 3e 3c 2f 74 64 3e 3c 2f 74 72 3e r><td></td></tr>
5a30: 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 72 3e ..</table>..<br>
5a40: 3c 68 72 3e 0d 0a 3c 68 33 3e 61 70 70 6c 79 69 <hr>..<h3>applyi
5a50: 6e 67 20 61 6e 20 41 66 66 69 6e 65 20 54 72 61 ng an Affine Tra
5a60: 6e 73 66 6f 72 6d 61 74 69 6f 6e 3c 2f 68 33 3e nsformation</h3>
5a70: 0d 0a 49 6e 20 6f 72 64 65 72 20 74 6f 20 6d 61 ..In order to ma
5a80: 74 65 72 69 61 6c 69 7a 65 20 61 6e 20 61 66 66 terialize an aff
5a90: 69 6e 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 ine transformati
5aa0: 6f 6e 20 77 65 20 73 69 6d 70 6c 79 20 68 61 76 on we simply hav
5ab0: 65 20 74 6f 20 63 6f 6d 70 75 74 65 20 20 3c 62 e to compute <b
5ac0: 3e 28 78 27 2c 20 79 27 2c 20 7a 27 29 3c 2f 62 >(x', y', z')</b
5ad0: 3e 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 73 74 > coordinates st
5ae0: 61 72 74 69 6e 67 20 66 72 6f 6d 20 3c 62 3e 28 arting from <b>(
5af0: 78 2c 20 79 2c 20 7a 29 3c 2f 62 3e 20 66 6f 72 x, y, z)</b> for
5b00: 20 65 76 65 72 79 20 70 6f 69 6e 74 20 6f 72 20 every point or
5b10: 76 65 72 74 65 78 20 66 6f 75 6e 64 20 69 6e 20 vertex found in
5b20: 74 68 65 20 69 6e 70 75 74 20 47 65 6f 6d 65 74 the input Geomet
5b30: 72 79 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 ry accordingly t
5b40: 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 o the following
5b50: 66 6f 72 6d 75 6c 61 65 3a 0d 0a 3c 75 6c 3e 0d formulae:..<ul>.
5b60: 0a 3c 6c 69 3e 3c 62 3e 78 27 20 3d 20 61 2a 78 .<li><b>x' = a*x
5b70: 20 2b 20 62 2a 79 20 2b 20 63 2a 7a 20 2b 20 78 + b*y + c*z + x
5b80: 6f 66 66 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c off</b></li>..<l
5b90: 69 3e 3c 62 3e 79 27 20 3d 20 64 2a 78 20 2b 20 i><b>y' = d*x +
5ba0: 65 2a 79 20 2b 20 66 2a 7a 20 2b 20 79 6f 66 66 e*y + f*z + yoff
5bb0: 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c </b></li>..<li><
5bc0: 62 3e 7a 27 20 3d 20 67 2a 78 20 2b 20 68 2a 79 b>z' = g*x + h*y
5bd0: 20 2b 20 69 2a 7a 20 2b 20 7a 6f 66 66 3c 2f 62 + i*z + zoff</b
5be0: 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 62 72 ></li>..</ul><br
5bf0: 3e 0d 0a 69 6e 20 74 68 65 20 73 69 6d 70 6c 65 >..in the simple
5c00: 72 20 3c 62 3e 32 44 3c 2f 62 3e 20 63 61 73 65 r <b>2D</b> case
5c10: 20 74 68 69 73 20 77 69 6c 6c 20 61 73 73 75 6d this will assum
5c20: 65 20 74 68 65 20 72 65 64 75 63 65 64 20 66 6f e the reduced fo
5c30: 72 6d 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c rm:..<ul>..<li><
5c40: 62 3e 78 27 20 3d 20 61 2a 78 20 2b 20 62 2a 79 b>x' = a*x + b*y
5c50: 20 2b 20 78 6f 66 66 3c 2f 62 3e 3c 2f 6c 69 3e + xoff</b></li>
5c60: 0d 0a 3c 6c 69 3e 3c 62 3e 79 27 20 3d 20 64 2a ..<li><b>y' = d*
5c70: 78 20 2b 20 65 2a 79 20 2b 20 79 6f 66 66 3c 2f x + e*y + yoff</
5c80: 62 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 62 b></li>..</ul><b
5c90: 72 3e 0d 0a 41 73 20 79 6f 75 20 63 61 6e 20 6e r>..As you can n
5ca0: 6f 74 69 63 65 2c 20 61 70 70 6c 79 69 6e 67 20 otice, applying
5cb0: 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 an Affine Transf
5cc0: 6f 72 6d 61 74 69 6f 6e 20 64 6f 65 73 20 6e 6f ormation does no
5cd0: 74 20 72 65 71 75 69 72 65 73 20 63 6f 6d 70 75 t requires compu
5ce0: 74 69 6e 67 20 61 6e 79 20 74 72 69 67 6f 6e 6f ting any trigono
5cf0: 6d 65 74 72 69 63 20 66 75 6e 63 74 69 6f 6e 2e metric function.
5d00: 3c 62 72 3e 0d 0a 54 72 69 67 6f 6e 6f 6d 65 74 <br>..Trigonomet
5d10: 72 69 63 20 66 75 6e 63 74 69 6f 6e 73 20 61 72 ric functions ar
5d20: 65 20 76 65 72 79 20 63 6f 73 74 6c 79 20 69 6e e very costly in
5d30: 20 63 6f 6d 70 75 74 61 74 69 6f 6e 61 6c 20 74 computational t
5d40: 65 72 6d 73 2c 20 73 6f 20 61 70 70 6c 79 69 6e erms, so applyin
5d50: 67 20 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e g an Affine Tran
5d60: 73 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 61 6e sformation is an
5d70: 20 69 6e 74 72 69 6e 73 69 63 61 6c 6c 79 20 65 intrinsically e
5d80: 66 66 69 63 69 65 6e 74 20 6d 65 63 68 61 6e 69 fficient mechani
5d90: 73 6d 20 62 65 63 61 75 73 65 20 73 69 6d 70 6c sm because simpl
5da0: 79 20 64 65 70 65 6e 64 73 20 6f 6e 20 6d 75 6c y depends on mul
5db0: 74 69 70 6c 69 63 61 74 69 6f 6e 73 20 61 6e 64 tiplications and
5dc0: 20 61 64 64 69 74 69 6f 6e 73 2e 3c 62 72 3e 0d additions.<br>.
5dd0: 0a 3c 62 72 3e 3c 68 72 3e 0d 0a 3c 68 33 3e 63 .<br><hr>..<h3>c
5de0: 68 61 69 6e 69 6e 67 20 74 77 6f 20 28 6f 72 20 haining two (or
5df0: 65 76 65 6e 20 6d 6f 72 65 29 20 41 66 66 69 6e even more) Affin
5e00: 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e e Transformation
5e10: 73 20 69 6e 20 61 20 73 69 6e 67 6c 65 20 6f 70 s in a single op
5e20: 65 72 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 41 66 eration</h3>..Af
5e30: 66 69 6e 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 fine transformat
5e40: 69 6f 6e 20 6d 61 74 72 69 63 65 73 20 68 61 76 ion matrices hav
5e50: 65 20 61 6e 6f 74 68 65 72 20 61 73 74 6f 6e 69 e another astoni
5e60: 73 68 69 6e 67 20 70 72 6f 70 65 72 74 79 2e 3c shing property.<
5e70: 62 72 3e 0d 0a 57 65 20 63 61 6e 20 3c 61 20 68 br>..We can <a h
5e80: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 ref="http://en.w
5e90: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
5ea0: 69 2f 4d 61 74 72 69 78 5f 6d 75 6c 74 69 70 6c i/Matrix_multipl
5eb0: 69 63 61 74 69 6f 6e 22 3e 6d 75 6c 74 69 70 6c ication">multipl
5ec0: 79 3c 2f 61 3e 20 74 77 6f 20 64 69 66 66 65 72 y</a> two differ
5ed0: 65 6e 74 20 61 66 66 69 6e 65 20 74 72 61 6e 73 ent affine trans
5ee0: 66 6f 72 6d 61 74 69 6f 6e 20 6d 61 74 72 69 63 formation matric
5ef0: 65 73 20 74 68 75 73 20 6f 62 74 61 69 6e 69 6e es thus obtainin
5f00: 67 20 61 20 74 68 69 72 64 20 6d 61 74 72 69 78 g a third matrix
5f10: 2c 20 61 6e 64 20 74 68 69 73 20 6c 61 74 65 73 , and this lates
5f20: 74 20 6f 6e 63 65 20 61 70 70 6c 69 65 64 20 77 t once applied w
5f30: 69 6c 6c 20 63 6f 6e 74 61 69 6e 20 62 6f 74 68 ill contain both
5f40: 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 transformations
5f50: 20 61 6e 64 20 69 6e 20 74 68 65 20 72 69 67 68 and in the righ
5f60: 74 20 73 65 71 75 65 6e 63 65 2e 3c 62 72 3e 0d t sequence.<br>.
5f70: 0a 54 68 65 72 65 20 69 73 20 6e 6f 20 6c 69 6d .There is no lim
5f80: 69 74 3b 20 77 65 20 63 61 6e 20 69 6e 66 69 6e it; we can infin
5f90: 69 74 69 76 65 6c 79 20 63 68 61 69 6e 20 61 73 itively chain as
5fa0: 20 6d 61 6e 79 20 74 72 61 6e 73 66 6f 72 6d 61 many transforma
5fb0: 74 69 6f 6e 73 20 61 73 20 72 65 71 75 69 72 65 tions as require
5fc0: 64 2c 20 77 65 27 6c 6c 20 73 69 6d 70 6c 79 20 d, we'll simply
5fd0: 68 61 76 65 20 74 6f 20 63 6f 6e 74 69 6e 75 65 have to continue
5fe0: 20 6d 75 6c 74 69 70 6c 79 69 6e 67 20 61 6c 6c multiplying all
5ff0: 20 6d 61 74 72 69 63 65 73 20 6f 6e 65 20 61 66 matrices one af
6000: 74 65 72 20 74 68 65 20 6f 74 68 65 72 20 63 61 ter the other ca
6010: 72 65 66 75 6c 6c 79 20 72 65 73 70 65 63 74 69 refully respecti
6020: 6e 67 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 ng the appropria
6030: 74 65 20 73 65 71 75 65 6e 63 65 2e 3c 62 72 3e te sequence.<br>
6040: 0d 0a 41 74 20 74 68 65 20 65 6e 64 20 6f 66 20 ..At the end of
6050: 74 68 65 20 70 72 6f 63 65 73 73 20 77 65 27 6c the process we'l
6060: 6c 20 61 6c 77 61 79 73 20 67 65 74 20 6a 75 73 l always get jus
6070: 74 20 61 20 73 69 6e 67 6c 65 20 61 66 66 69 6e t a single affin
6080: 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e e transformation
6090: 20 6d 61 74 72 69 78 20 66 61 69 74 68 66 75 6c matrix faithful
60a0: 6c 79 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 ly representing
60b0: 61 6e 79 20 69 6e 64 69 76 69 64 75 61 6c 20 74 any individual t
60c0: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 69 6e ransformation in
60d0: 20 74 68 65 20 63 68 61 69 6e 2e 0d 0a 3c 74 61 the chain...<ta
60e0: 62 6c 65 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 ble bgcolor="#ff
60f0: 63 30 30 30 22 20 63 65 6c 6c 70 61 64 64 69 6e c000" cellpaddin
6100: 67 3d 22 31 30 22 3e 3c 74 72 3e 3c 74 64 3e 0d g="10"><tr><td>.
6110: 0a 54 68 65 20 6d 75 6c 74 69 70 6c 69 63 61 74 .The multiplicat
6120: 69 6f 6e 20 62 65 74 77 65 65 6e 20 74 77 6f 20 ion between two
6130: 6d 61 74 72 69 63 65 73 20 3c 75 3e 69 73 20 6e matrices <u>is n
6140: 6f 74 20 61 20 63 6f 6d 6d 75 74 61 74 69 76 65 ot a commutative
6150: 20 6f 70 65 72 61 74 69 6f 6e 3c 2f 75 3e 3a 20 operation</u>:
6160: 74 68 65 20 72 65 6c 61 74 69 76 65 20 6f 72 64 the relative ord
6170: 65 72 20 6f 66 20 6f 70 65 72 61 6e 64 73 20 69 er of operands i
6180: 73 20 61 62 73 6f 6c 75 74 65 6c 79 20 72 65 6c s absolutely rel
6190: 65 76 61 6e 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e evant.</td></tr>
61a0: 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 68 33 3e 6d 75 </table>..<h3>mu
61b0: 6c 74 69 70 6c 79 69 6e 67 20 74 77 6f 20 6d 61 ltiplying two ma
61c0: 74 72 69 63 65 73 3c 2f 68 33 3e 0d 0a 4d 75 6c trices</h3>..Mul
61d0: 74 69 70 6c 69 63 61 74 69 6f 6e 20 69 73 20 6e tiplication is n
61e0: 6f 74 20 72 65 61 6c 6c 79 20 61 20 73 69 6d 70 ot really a simp
61f0: 6c 65 20 6f 70 65 72 61 74 69 6f 6e 20 77 68 65 le operation whe
6200: 6e 20 6d 61 74 72 69 63 65 73 20 61 72 65 20 69 n matrices are i
6210: 6e 76 6f 6c 76 65 64 20 61 6e 64 20 72 65 71 75 nvolved and requ
6220: 69 72 65 73 20 61 20 72 61 74 68 65 72 20 63 6f ires a rather co
6230: 6d 70 6c 65 78 20 70 72 6f 63 65 64 75 72 65 3b mplex procedure;
6240: 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 the following e
6250: 78 61 6d 70 6c 65 20 73 68 6f 77 73 20 68 6f 77 xample shows how
6260: 20 74 6f 20 6d 75 6c 74 69 70 6c 79 20 74 77 6f to multiply two
6270: 20 3c 62 3e 34 20 78 20 34 3c 2f 62 3e 20 6d 61 <b>4 x 4</b> ma
6280: 74 72 69 63 65 73 2e 3c 62 72 3e 0d 0a 3c 74 61 trices.<br>..<ta
6290: 62 6c 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d ble cellspacing=
62a0: 22 34 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d "4" cellpadding=
62b0: 22 34 22 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a "4">..<tr><td>..
62c0: 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e 3c 74 64 <table>..<tr><td
62d0: 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e >/</td><td align
62e0: 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e ="center">a<sub>
62f0: 31 31 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 11</sub></td><td
6300: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6310: 61 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 3c 2f a<sub>12</sub></
6320: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6330: 6e 74 65 72 22 3e 61 3c 73 75 62 3e 31 33 3c 2f nter">a<sub>13</
6340: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 sub></td><td ali
6350: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 gn="center">a<su
6360: 62 3e 31 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>14</sub></td><
6370: 74 64 3e 5c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a td>\</td></tr>..
6380: 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 <tr><td>|</td><t
6390: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
63a0: 3e 61 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e 3c >a<sub>21</sub><
63b0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
63c0: 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 32 32 3c enter">a<sub>22<
63d0: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c /sub></td><td al
63e0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 ign="center">a<s
63f0: 75 62 3e 32 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e ub>23</sub></td>
6400: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6410: 72 22 3e 61 3c 73 75 62 3e 32 34 3c 2f 73 75 62 r">a<sub>24</sub
6420: 3e 3c 2f 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ></td><td>|</td>
6430: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c </tr>..<tr><td>|
6440: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6450: 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e 33 31 center">a<sub>31
6460: 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 </sub></td><td a
6470: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c lign="center">a<
6480: 73 75 62 3e 33 32 3c 2f 73 75 62 3e 3c 2f 74 64 sub>32</sub></td
6490: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
64a0: 65 72 22 3e 61 3c 73 75 62 3e 33 33 3c 2f 73 75 er">a<sub>33</su
64b0: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
64c0: 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 3e ="center">a<sub>
64d0: 33 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 34</sub></td><td
64e0: 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 >|</td></tr>..<t
64f0: 72 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 r><td>\</td><td
6500: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 61 align="center">a
6510: 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 3c 2f 74 <sub>41</sub></t
6520: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
6530: 74 65 72 22 3e 61 3c 73 75 62 3e 34 32 3c 2f 73 ter">a<sub>42</s
6540: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
6550: 6e 3d 22 63 65 6e 74 65 72 22 3e 61 3c 73 75 62 n="center">a<sub
6560: 3e 34 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >43</sub></td><t
6570: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
6580: 3e 61 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e 3c >a<sub>44</sub><
6590: 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 2f /td><td>/</td></
65a0: 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c tr>..</table>..<
65b0: 2f 74 64 3e 3c 74 64 20 76 61 6c 69 67 6e 3d 22 /td><td valign="
65c0: 6d 69 64 64 6c 65 22 3e 2a 3c 2f 74 64 3e 0d 0a middle">*</td>..
65d0: 3c 74 64 3e 0d 0a 3c 74 61 62 6c 65 3e 0d 0a 3c <td>..<table>..<
65e0: 74 72 3e 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 tr><td>/</td><td
65f0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6600: 62 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 3c 2f b<sub>11</sub></
6610: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6620: 6e 74 65 72 22 3e 62 3c 73 75 62 3e 31 32 3c 2f nter">b<sub>12</
6630: 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 sub></td><td ali
6640: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 gn="center">b<su
6650: 62 3e 31 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c b>13</sub></td><
6660: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6670: 22 3e 62 3c 73 75 62 3e 31 34 3c 2f 73 75 62 3e ">b<sub>14</sub>
6680: 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c </td><td>\</td><
6690: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c /tr>..<tr><td>|<
66a0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
66b0: 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 32 31 3c enter">b<sub>21<
66c0: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c /sub></td><td al
66d0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 ign="center">b<s
66e0: 75 62 3e 32 32 3c 2f 73 75 62 3e 3c 2f 74 64 3e ub>22</sub></td>
66f0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6700: 72 22 3e 62 3c 73 75 62 3e 32 33 3c 2f 73 75 62 r">b<sub>23</sub
6710: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
6720: 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 32 "center">b<sub>2
6730: 34 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 3e 4</sub></td><td>
6740: 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 |</td></tr>..<tr
6750: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>|</td><td a
6760: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c lign="center">b<
6770: 73 75 62 3e 33 31 3c 2f 73 75 62 3e 3c 2f 74 64 sub>31</sub></td
6780: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
6790: 65 72 22 3e 62 3c 73 75 62 3e 33 32 3c 2f 73 75 er">b<sub>32</su
67a0: 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e b></td><td align
67b0: 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e ="center">b<sub>
67c0: 33 33 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 33</sub></td><td
67d0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
67e0: 62 3c 73 75 62 3e 33 34 3c 2f 73 75 62 3e 3c 2f b<sub>34</sub></
67f0: 74 64 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 td><td>|</td></t
6800: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 5c 3c 2f 74 r>..<tr><td>\</t
6810: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
6820: 74 65 72 22 3e 62 3c 73 75 62 3e 34 31 3c 2f 73 ter">b<sub>41</s
6830: 75 62 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ub></td><td alig
6840: 6e 3d 22 63 65 6e 74 65 72 22 3e 62 3c 73 75 62 n="center">b<sub
6850: 3e 34 32 3c 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 >42</sub></td><t
6860: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
6870: 3e 62 3c 73 75 62 3e 34 33 3c 2f 73 75 62 3e 3c >b<sub>43</sub><
6880: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
6890: 65 6e 74 65 72 22 3e 62 3c 73 75 62 3e 34 34 3c enter">b<sub>44<
68a0: 2f 73 75 62 3e 3c 2f 74 64 3e 3c 74 64 3e 2f 3c /sub></td><td>/<
68b0: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 /td></tr>..</tab
68c0: 6c 65 3e 0d 0a 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 le>..</td>..</td
68d0: 3e 3c 74 64 20 76 61 6c 69 67 6e 3d 22 6d 69 64 ><td valign="mid
68e0: 64 6c 65 22 3e 3d 3c 2f 74 64 3e 0d 0a 3c 74 64 dle">=</td>..<td
68f0: 3e 0d 0a 3c 74 61 62 6c 65 3e 0d 0a 3c 74 72 3e >..<table>..<tr>
6900: 3c 74 64 3e 2f 3c 2f 74 64 3e 3c 74 64 20 61 6c <td>/</td><td al
6910: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0d 0a 28 ign="center">..(
6920: 61 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 2a 62 a<sub>11</sub>*b
6930: 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 20 2b 20 <sub>11</sub> +
6940: 0d 0a 61 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e ..a<sub>12</sub>
6950: 2a 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e 20 *b<sub>21</sub>
6960: 2b 20 0d 0a 61 3c 73 75 62 3e 31 33 3c 2f 73 75 + ..a<sub>13</su
6970: 62 3e 2a 62 3c 73 75 62 3e 33 31 3c 2f 73 75 62 b>*b<sub>31</sub
6980: 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 31 34 3c 2f > + ..a<sub>14</
6990: 73 75 62 3e 2a 62 3c 73 75 62 3e 34 31 3c 2f 73 sub>*b<sub>41</s
69a0: 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 ub>)</td>..<td>(
69b0: 61 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 2a 62 a<sub>11</sub>*b
69c0: 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 20 2b 20 <sub>12</sub> +
69d0: 0d 0a 61 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e ..a<sub>12</sub>
69e0: 2a 62 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e 20 *b<sub>22</sub>
69f0: 2b 20 0d 0a 61 3c 73 75 62 3e 31 33 3c 2f 73 75 + ..a<sub>13</su
6a00: 62 3e 2a 62 3c 73 75 62 3e 33 32 3c 2f 73 75 62 b>*b<sub>32</sub
6a10: 3e 20 2b 0d 0a 61 3c 73 75 62 3e 31 34 3c 2f 73 > +..a<sub>14</s
6a20: 75 62 3e 2a 62 3c 73 75 62 3e 34 32 3c 2f 73 75 ub>*b<sub>42</su
6a30: 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 b>)</td>..<td>(a
6a40: 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 2a 62 3c <sub>11</sub>*b<
6a50: 73 75 62 3e 31 33 3c 2f 73 75 62 3e 20 2b 20 0d sub>13</sub> + .
6a60: 0a 61 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 2a .a<sub>12</sub>*
6a70: 62 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 20 2b b<sub>23</sub> +
6a80: 20 0d 0a 61 3c 73 75 62 3e 31 33 3c 2f 73 75 62 ..a<sub>13</sub
6a90: 3e 2a 62 3c 73 75 62 3e 33 33 3c 2f 73 75 62 3e >*b<sub>33</sub>
6aa0: 20 2b 0d 0a 61 3c 73 75 62 3e 31 34 3c 2f 73 75 +..a<sub>14</su
6ab0: 62 3e 2a 62 3c 73 75 62 3e 34 33 3c 2f 73 75 62 b>*b<sub>43</sub
6ac0: 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c >)</td>..<td>(a<
6ad0: 73 75 62 3e 31 31 3c 2f 73 75 62 3e 2a 62 3c 73 sub>11</sub>*b<s
6ae0: 75 62 3e 31 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a ub>14</sub> + ..
6af0: 61 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 2a 62 a<sub>12</sub>*b
6b00: 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 20 2b 20 <sub>24</sub> +
6b10: 0d 0a 61 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e ..a<sub>13</sub>
6b20: 2a 62 3c 73 75 62 3e 33 34 3c 2f 73 75 62 3e 20 *b<sub>34</sub>
6b30: 2b 0d 0a 61 3c 73 75 62 3e 31 34 3c 2f 73 75 62 +..a<sub>14</sub
6b40: 3e 2a 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 3e >*b<sub>44</sub>
6b50: 29 3c 2f 74 64 3e 3c 74 64 3e 5c 3c 2f 74 64 3e )</td><td>\</td>
6b60: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 7c </tr>..<tr><td>|
6b70: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6b80: 63 65 6e 74 65 72 22 3e 0d 0a 28 61 3c 73 75 62 center">..(a<sub
6b90: 3e 32 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >21</sub>*b<sub>
6ba0: 31 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 11</sub> + ..a<s
6bb0: 75 62 3e 32 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>22</sub>*b<su
6bc0: 62 3e 32 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>21</sub> + ..a
6bd0: 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 2a 62 3c <sub>23</sub>*b<
6be0: 73 75 62 3e 33 31 3c 2f 73 75 62 3e 20 2b 20 0d sub>31</sub> + .
6bf0: 0a 61 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 2a .a<sub>24</sub>*
6c00: 62 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 29 3c b<sub>41</sub>)<
6c10: 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 /td>..<td>(a<sub
6c20: 3e 32 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >21</sub>*b<sub>
6c30: 31 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 12</sub> + ..a<s
6c40: 75 62 3e 32 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>22</sub>*b<su
6c50: 62 3e 32 32 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 b>22</sub> + ..a
6c60: 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 2a 62 3c <sub>23</sub>*b<
6c70: 73 75 62 3e 33 32 3c 2f 73 75 62 3e 20 2b 0d 0a sub>32</sub> +..
6c80: 61 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 2a 62 a<sub>24</sub>*b
6c90: 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 29 3c 2f <sub>42</sub>)</
6ca0: 74 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e td>..<td>(a<sub>
6cb0: 32 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 21</sub>*b<sub>1
6cc0: 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 3</sub> + ..a<su
6cd0: 62 3e 32 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>22</sub>*b<sub
6ce0: 3e 32 33 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c >23</sub> + ..a<
6cf0: 73 75 62 3e 32 33 3c 2f 73 75 62 3e 2a 62 3c 73 sub>23</sub>*b<s
6d00: 75 62 3e 33 33 3c 2f 73 75 62 3e 20 2b 0d 0a 61 ub>33</sub> +..a
6d10: 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 2a 62 3c <sub>24</sub>*b<
6d20: 73 75 62 3e 34 33 3c 2f 73 75 62 3e 29 3c 2f 74 sub>43</sub>)</t
6d30: 64 3e 0d 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 32 d>..<td>(a<sub>2
6d40: 31 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 31 34 1</sub>*b<sub>14
6d50: 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 </sub> + ..a<sub
6d60: 3e 32 32 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >22</sub>*b<sub>
6d70: 32 34 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 24</sub> + ..a<s
6d80: 75 62 3e 32 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 ub>23</sub>*b<su
6d90: 62 3e 33 34 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c b>34</sub> +..a<
6da0: 73 75 62 3e 32 34 3c 2f 73 75 62 3e 2a 62 3c 73 sub>24</sub>*b<s
6db0: 75 62 3e 34 34 3c 2f 73 75 62 3e 29 3c 2f 74 64 ub>44</sub>)</td
6dc0: 3e 3c 74 64 3e 7c 3c 2f 74 64 3e 3c 2f 74 72 3e ><td>|</td></tr>
6dd0: 0d 0a 3c 74 72 3e 3c 74 64 3e 7c 3c 2f 74 64 3e ..<tr><td>|</td>
6de0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6df0: 72 22 3e 0d 0a 28 61 3c 73 75 62 3e 33 31 3c 2f r">..(a<sub>31</
6e00: 73 75 62 3e 2a 62 3c 73 75 62 3e 31 31 3c 2f 73 sub>*b<sub>11</s
6e10: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 32 ub> + ..a<sub>32
6e20: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 31 3c </sub>*b<sub>21<
6e30: 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e /sub> + ..a<sub>
6e40: 33 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 33</sub>*b<sub>3
6e50: 31 3c 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 1</sub> + ..a<su
6e60: 62 3e 33 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 b>34</sub>*b<sub
6e70: 3e 34 31 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d >41</sub>)</td>.
6e80: 0a 3c 74 64 3e 28 61 3c 73 75 62 3e 33 31 3c 2f .<td>(a<sub>31</
6e90: 73 75 62 3e 2a 62 3c 73 75 62 3e 31 32 3c 2f 73 sub>*b<sub>12</s
6ea0: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 32 ub> + ..a<sub>32
6eb0: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 32 3c </sub>*b<sub>22<
6ec0: 2f 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e /sub> + ..a<sub>
6ed0: 33 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 33</sub>*b<sub>3
6ee0: 32 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 2</sub> +..a<sub
6ef0: 3e 33 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e >34</sub>*b<sub>
6f00: 34 32 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 42</sub>)</td>..
6f10: 3c 74 64 3e 28 61 3c 73 75 62 3e 33 31 3c 2f 73 <td>(a<sub>31</s
6f20: 75 62 3e 2a 62 3c 73 75 62 3e 31 33 3c 2f 73 75 ub>*b<sub>13</su
6f30: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 32 3c b> + ..a<sub>32<
6f40: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 32 33 3c 2f /sub>*b<sub>23</
6f50: 73 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 sub> + ..a<sub>3
6f60: 33 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 33 3</sub>*b<sub>33
6f70: 3c 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e </sub> +..a<sub>
6f80: 33 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 34</sub>*b<sub>4
6f90: 33 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 3</sub>)</td>..<
6fa0: 74 64 3e 28 61 3c 73 75 62 3e 33 31 3c 2f 73 75 td>(a<sub>31</su
6fb0: 62 3e 2a 62 3c 73 75 62 3e 31 34 3c 2f 73 75 62 b>*b<sub>14</sub
6fc0: 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 32 3c 2f > + ..a<sub>32</
6fd0: 73 75 62 3e 2a 62 3c 73 75 62 3e 32 34 3c 2f 73 sub>*b<sub>24</s
6fe0: 75 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 33 33 ub> + ..a<sub>33
6ff0: 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 33 34 3c </sub>*b<sub>34<
7000: 2f 73 75 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 33 /sub> +..a<sub>3
7010: 34 3c 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 34 4</sub>*b<sub>44
7020: 3c 2f 73 75 62 3e 29 3c 2f 74 64 3e 3c 74 64 3e </sub>)</td><td>
7030: 7c 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 |</td></tr>..<tr
7040: 3e 3c 74 64 3e 5c 3c 2f 74 64 3e 3c 74 64 20 61 ><td>\</td><td a
7050: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0d 0a lign="center">..
7060: 28 61 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 2a (a<sub>41</sub>*
7070: 62 3c 73 75 62 3e 31 31 3c 2f 73 75 62 3e 20 2b b<sub>11</sub> +
7080: 20 0d 0a 61 3c 73 75 62 3e 34 32 3c 2f 73 75 62 ..a<sub>42</sub
7090: 3e 2a 62 3c 73 75 62 3e 32 31 3c 2f 73 75 62 3e >*b<sub>21</sub>
70a0: 20 2b 20 0d 0a 61 3c 73 75 62 3e 34 33 3c 2f 73 + ..a<sub>43</s
70b0: 75 62 3e 2a 62 3c 73 75 62 3e 33 31 3c 2f 73 75 ub>*b<sub>31</su
70c0: 62 3e 20 2b 20 0d 0a 61 3c 73 75 62 3e 34 34 3c b> + ..a<sub>44<
70d0: 2f 73 75 62 3e 2a 62 3c 73 75 62 3e 34 31 3c 2f /sub>*b<sub>41</
70e0: 73 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e sub>)</td>..<td>
70f0: 28 61 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 2a (a<sub>41</sub>*
7100: 62 3c 73 75 62 3e 31 32 3c 2f 73 75 62 3e 20 2b b<sub>12</sub> +
7110: 20 0d 0a 61 3c 73 75 62 3e 34 32 3c 2f 73 75 62 ..a<sub>42</sub
7120: 3e 2a 62 3c 73 75 62 3e 32 32 3c 2f 73 75 62 3e >*b<sub>22</sub>
7130: 20 2b 20 0d 0a 61 3c 73 75 62 3e 34 33 3c 2f 73 + ..a<sub>43</s
7140: 75 62 3e 2a 62 3c 73 75 62 3e 33 32 3c 2f 73 75 ub>*b<sub>32</su
7150: 62 3e 20 2b 0d 0a 61 3c 73 75 62 3e 34 34 3c 2f b> +..a<sub>44</
7160: 73 75 62 3e 2a 62 3c 73 75 62 3e 34 32 3c 2f 73 sub>*b<sub>42</s
7170: 75 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 ub>)</td>..<td>(
7180: 61 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 2a 62 a<sub>41</sub>*b
7190: 3c 73 75 62 3e 31 33 3c 2f 73 75 62 3e 20 2b 20 <sub>13</sub> +
71a0: 0d 0a 61 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e ..a<sub>42</sub>
71b0: 2a 62 3c 73 75 62 3e 32 33 3c 2f 73 75 62 3e 20 *b<sub>23</sub>
71c0: 2b 20 0d 0a 61 3c 73 75 62 3e 34 33 3c 2f 73 75 + ..a<sub>43</su
71d0: 62 3e 2a 62 3c 73 75 62 3e 33 33 3c 2f 73 75 62 b>*b<sub>33</sub
71e0: 3e 20 2b 0d 0a 61 3c 73 75 62 3e 34 34 3c 2f 73 > +..a<sub>44</s
71f0: 75 62 3e 2a 62 3c 73 75 62 3e 34 33 3c 2f 73 75 ub>*b<sub>43</su
7200: 62 3e 29 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 28 61 b>)</td>..<td>(a
7210: 3c 73 75 62 3e 34 31 3c 2f 73 75 62 3e 2a 62 3c <sub>41</sub>*b<
7220: 73 75 62 3e 31 34 3c 2f 73 75 62 3e 20 2b 20 0d sub>14</sub> + .
7230: 0a 61 3c 73 75 62 3e 34 32 3c 2f 73 75 62 3e 2a .a<sub>42</sub>*
7240: 62 3c 73 75 62 3e 32 34 3c 2f 73 75 62 3e 20 2b b<sub>24</sub> +
7250: 20 0d 0a 61 3c 73 75 62 3e 34 33 3c 2f 73 75 62 ..a<sub>43</sub
7260: 3e 2a 62 3c 73 75 62 3e 33 34 3c 2f 73 75 62 3e >*b<sub>34</sub>
7270: 20 2b 0d 0a 61 3c 73 75 62 3e 34 34 3c 2f 73 75 +..a<sub>44</su
7280: 62 3e 2a 62 3c 73 75 62 3e 34 34 3c 2f 73 75 62 b>*b<sub>44</sub
7290: 3e 29 3c 2f 74 64 3e 3c 74 64 3e 2f 3c 2f 74 64 >)</td><td>/</td
72a0: 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e ></tr>..</table>
72b0: 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 ..</td></tr></ta
72c0: 62 6c 65 3e 0d 0a 3c 68 33 3e 69 64 65 6e 74 69 ble>..<h3>identi
72d0: 74 79 20 6d 61 74 72 69 78 3c 2f 68 33 3e 0d 0a ty matrix</h3>..
72e0: 41 6e 20 69 64 65 6e 74 69 74 79 20 6d 61 74 72 An identity matr
72f0: 69 78 20 73 69 6d 70 6c 79 20 63 6f 72 72 65 73 ix simply corres
7300: 70 6f 6e 64 73 20 74 6f 20 61 6e 20 61 66 66 69 ponds to an affi
7310: 6e 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne transformatio
7320: 6e 20 6c 61 63 6b 69 6e 67 20 61 6e 79 20 61 63 n lacking any ac
7330: 74 75 61 6c 20 65 66 66 65 63 74 3a 20 61 74 20 tual effect: at
7340: 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 70 the end of the p
7350: 72 6f 63 65 73 73 20 74 68 65 20 74 72 61 6e 73 rocess the trans
7360: 66 6f 72 6d 65 64 20 67 65 6f 6d 65 74 72 79 20 formed geometry
7370: 77 69 6c 6c 20 62 65 20 65 78 61 63 74 6c 79 20 will be exactly
7380: 74 68 65 20 73 61 6d 65 20 61 73 20 62 65 66 6f the same as befo
7390: 72 65 2e 3c 62 72 3e 0d 0a 4d 6f 72 65 6f 76 65 re.<br>..Moreove
73a0: 72 20 61 6e 20 69 64 65 6e 74 69 74 79 20 6d 61 r an identity ma
73b0: 74 72 69 78 20 70 6c 61 79 73 20 61 20 73 70 65 trix plays a spe
73c0: 63 69 61 6c 20 72 6f 6c 65 20 69 6e 20 6d 75 6c cial role in mul
73d0: 74 69 70 6c 69 63 61 74 69 6f 6e 3a 20 74 68 65 tiplication: the
73e0: 20 72 65 73 75 6c 74 69 6e 67 20 6d 61 74 72 69 resulting matri
73f0: 78 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 62 65 x will always be
7400: 20 65 78 61 63 74 6c 79 20 74 68 65 20 73 61 6d exactly the sam
7410: 65 20 6f 66 20 74 68 65 20 6f 74 68 65 72 20 6d e of the other m
7420: 61 74 72 69 78 2e 3c 62 72 3e 0d 0a 28 3c 69 3e atrix.<br>..(<i>
7430: 69 74 27 73 20 6d 6f 72 65 20 6f 72 20 6c 65 73 it's more or les
7440: 73 20 74 68 65 20 65 71 75 69 76 61 6c 65 6e 74 s the equivalent
7450: 20 6f 66 20 6d 75 6c 74 69 70 6c 79 69 6e 67 20 of multiplying
7460: 65 2e 67 2e 20 3c 62 3e 38 2a 31 3d 38 3c 2f 62 e.g. <b>8*1=8</b
7470: 3e 20 69 6e 20 61 6e 20 6f 72 64 69 6e 61 72 79 > in an ordinary
7480: 20 73 63 61 6c 61 72 20 6d 75 6c 74 69 70 6c 69 scalar multipli
7490: 63 61 74 69 6f 6e 3c 2f 69 3e 29 2e 3c 62 72 3e cation</i>).<br>
74a0: 3c 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 33 3e <br>..<hr>..<h3>
74b0: 42 6f 72 69 6e 67 20 53 51 4c 20 66 75 6e 63 74 Boring SQL funct
74c0: 69 6f 6e 73 3a 20 61 20 66 6f 72 6d 61 6c 20 65 ions: a formal e
74d0: 78 70 6c 61 6e 61 74 69 6f 6e 3c 2f 68 33 3e 0d xplanation</h3>.
74e0: 0a 3c 74 61 62 6c 65 20 62 6f 72 64 65 72 3d 22 .<table border="
74f0: 31 22 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 1" cellspacing="
7500: 34 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 4" cellpadding="
7510: 38 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 8" bgcolor="#fff
7520: 30 64 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 0d0">..<tr><th b
7530: 67 63 6f 6c 6f 72 3d 22 23 43 33 42 30 39 31 22 gcolor="#C3B091"
7540: 3e 53 51 4c 20 46 75 6e 63 74 69 6f 6e 3c 2f 74 >SQL Function</t
7550: 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 h><th bgcolor="#
7560: 43 33 42 30 39 31 22 3e 44 65 73 63 72 69 70 74 C3B091">Descript
7570: 69 6f 6e 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c ion</th></tr>..<
7580: 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 54 72 tr><td><b>ATM_Tr
7590: 61 6e 73 66 6f 72 6d 20 28 20 42 4c 4f 42 20 47 ansform ( BLOB G
75a0: 65 6f 6d 65 74 72 79 20 2c 20 42 4c 4f 42 20 41 eometry , BLOB A
75b0: 54 2d 6d 61 74 72 69 78 20 29 20 3a 20 42 4c 4f T-matrix ) : BLO
75c0: 42 20 47 65 6f 6d 65 74 72 79 3c 2f 74 64 3e 3c B Geometry</td><
75d0: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 td>Will return a
75e0: 20 6e 65 77 20 47 65 6f 6d 65 74 72 79 20 62 79 new Geometry by
75f0: 20 61 70 70 6c 79 69 6e 67 20 61 6e 20 41 66 66 applying an Aff
7600: 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 ine Transformati
7610: 6f 6e 20 74 6f 20 74 68 65 20 69 6e 70 75 74 20 on to the input
7620: 47 65 6f 6d 65 74 72 79 2e 3c 62 72 3e 0d 0a 54 Geometry.<br>..T
7630: 68 65 20 6f 75 74 70 75 74 20 47 65 6f 6d 65 74 he output Geomet
7640: 72 79 20 77 69 6c 6c 20 70 72 65 73 65 72 76 65 ry will preserve
7650: 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 53 52 the original SR
7660: 49 44 2c 20 64 69 6d 65 6e 73 69 6f 6e 73 20 61 ID, dimensions a
7670: 6e 64 20 74 79 70 65 2e 3c 62 72 3e 0d 0a 4e 55 nd type.<br>..NU
7680: 4c 4c 20 77 69 6c 6c 20 62 65 20 72 65 74 75 72 LL will be retur
7690: 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 ned on invalid a
76a0: 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f rguments.</td></
76b0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e tr>..<tr><td><b>
76c0: 41 54 4d 5f 49 73 56 61 6c 69 64 20 28 20 42 4c ATM_IsValid ( BL
76d0: 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 29 20 3a OB AT-matrix ) :
76e0: 20 42 4f 4f 4c 45 41 4e 3c 2f 74 64 3e 3c 74 64 BOOLEAN</td><td
76f0: 3e 57 69 6c 6c 20 63 68 65 63 6b 20 69 66 20 61 >Will check if a
7700: 20 42 4c 4f 42 20 64 6f 20 72 65 61 6c 6c 79 20 BLOB do really
7710: 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 61 6e correspond to an
7720: 20 65 6e 63 6f 64 65 64 20 41 66 66 69 6e 65 20 encoded Affine
7730: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d Transformation M
7740: 61 74 72 69 78 20 74 68 65 6e 20 72 65 74 75 72 atrix then retur
7750: 6e 69 6e 67 20 54 52 55 45 20 6f 72 20 46 41 4c ning TRUE or FAL
7760: 53 45 2e 3c 62 72 3e 0d 0a 2d 31 20 77 69 6c 6c SE.<br>..-1 will
7770: 20 62 65 20 72 65 74 75 72 6e 65 64 20 69 66 20 be returned if
7780: 74 68 65 20 61 72 67 75 6d 65 6e 74 20 69 73 6e the argument isn
7790: 27 74 20 6f 66 20 74 68 65 20 42 4c 4f 42 20 74 't of the BLOB t
77a0: 79 70 65 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a ype.</td></tr>..
77b0: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 41 <tr><td><b>ATM_A
77c0: 73 54 65 78 74 20 28 20 42 4c 4f 42 20 41 54 2d sText ( BLOB AT-
77d0: 6d 61 74 72 69 78 20 29 20 3a 20 54 45 58 54 3c matrix ) : TEXT<
77e0: 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 /td><td>Will ret
77f0: 75 72 6e 20 61 20 74 65 78 74 20 73 65 72 69 61 urn a text seria
7800: 6c 69 7a 65 64 20 72 65 70 72 65 73 65 6e 74 61 lized representa
7810: 74 69 6f 6e 20 6f 66 20 74 68 65 20 4d 61 74 72 tion of the Matr
7820: 69 78 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 77 69 ix.<br>..NULL wi
7830: 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 6f ll be returned o
7840: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 n invalid argume
7850: 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a nts.</td></tr>..
7860: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 4d <tr><td><b>ATM_M
7870: 75 6c 74 69 70 6c 79 20 28 20 42 4c 4f 42 20 41 ultiply ( BLOB A
7880: 54 2d 6d 61 74 72 69 78 2d 41 20 2c 20 42 4c 4f T-matrix-A , BLO
7890: 42 20 41 54 2d 6d 61 74 72 69 78 2d 42 20 29 20 B AT-matrix-B )
78a0: 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 : BLOB AT-matrix
78b0: 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 6d 75 </td><td>Will mu
78c0: 6c 74 69 70 6c 79 20 4d 61 74 72 69 78 2d 42 20 ltiply Matrix-B
78d0: 62 79 20 4d 61 74 72 69 78 2d 41 20 74 68 65 6e by Matrix-A then
78e0: 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 72 returning the r
78f0: 65 73 75 6c 74 69 6e 67 20 4d 61 74 72 69 78 2e esulting Matrix.
7900: 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 77 69 6c 6c 20 <br>..NULL will
7910: 62 65 20 72 65 74 75 72 6e 65 64 20 6f 6e 20 69 be returned on i
7920: 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 nvalid arguments
7930: 2e 3c 68 72 3e 0d 0a 3c 75 3e 4e 6f 74 65 3c 2f .<hr>..<u>Note</
7940: 75 3e 3a 20 74 68 65 20 74 72 61 6e 73 66 6f 72 u>: the transfor
7950: 6d 61 74 69 6f 6e 20 64 65 66 69 6e 65 64 20 62 mation defined b
7960: 79 20 4d 61 74 72 69 78 2d 41 20 28 6c 65 66 74 y Matrix-A (left
7970: 20 6f 70 65 72 61 6e 64 29 20 77 69 6c 6c 20 61 operand) will a
7980: 6c 77 61 79 73 20 68 61 70 70 65 6e 20 3c 75 3e lways happen <u>
7990: 61 66 74 65 72 3c 2f 75 3e 20 61 70 70 6c 79 69 after</u> applyi
79a0: 6e 67 20 61 6c 6c 20 74 72 61 6e 73 66 6f 72 6d ng all transform
79b0: 61 74 69 6f 6e 73 20 64 65 66 69 6e 65 64 20 62 ations defined b
79c0: 79 20 4d 61 74 72 69 78 2d 42 20 28 72 69 67 68 y Matrix-B (righ
79d0: 74 20 6f 70 65 72 61 6e 64 29 2e 3c 2f 74 64 3e t operand).</td>
79e0: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 68 20 63 </tr>..<tr><th c
79f0: 6f 6c 73 70 61 6e 3d 22 32 22 20 62 67 63 6f 6c olspan="2" bgcol
7a00: 6f 72 3d 22 23 46 30 45 36 38 43 22 20 61 6c 69 or="#F0E68C" ali
7a10: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 53 51 4c 20 gn="center">SQL
7a20: 66 75 6e 63 74 69 6f 6e 73 20 63 72 65 61 74 69 functions creati
7a30: 6e 67 20 61 6e 64 20 69 6e 69 74 69 61 6c 69 7a ng and initializ
7a40: 69 6e 67 20 61 20 6e 65 77 20 41 66 66 69 6e 65 ing a new Affine
7a50: 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 Transformation
7a60: 4d 61 74 72 69 78 3c 2f 74 68 3e 3c 2f 74 72 3e Matrix</th></tr>
7a70: 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d ..<tr><td><b>ATM
7a80: 5f 43 72 65 61 74 65 20 28 20 76 6f 69 64 20 29 _Create ( void )
7a90: 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 : BLOB AT-matri
7aa0: 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 x</b></td><td>Wi
7ab0: 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 49 64 65 ll return an Ide
7ac0: 6e 74 69 74 79 20 41 66 66 69 6e 65 20 54 72 61 ntity Affine Tra
7ad0: 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 nsformation Matr
7ae0: 69 78 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 ix.<br>..NULL if
7af0: 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 any error occur
7b00: 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 s.</td></tr>..<t
7b10: 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 r><td><b>ATM_Cre
7b20: 61 74 65 20 28 20 64 6f 75 62 6c 65 20 61 20 2c ate ( double a ,
7b30: 20 64 6f 75 62 6c 65 20 62 20 2c 20 64 6f 75 62 double b , doub
7b40: 6c 65 20 64 20 2c 20 64 6f 75 62 6c 65 20 65 20 le d , double e
7b50: 2c 20 64 6f 75 62 6c 65 20 78 6f 66 66 20 2c 20 , double xoff ,
7b60: 64 6f 75 62 6c 65 20 79 6f 66 66 20 29 20 3a 20 double yoff ) :
7b70: 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f BLOB AT-matrix</
7b80: 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 b></td><td>Will
7b90: 72 65 74 75 72 6e 20 61 20 32 44 20 41 66 66 69 return a 2D Affi
7ba0: 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne Transformatio
7bb0: 6e 20 4d 61 74 72 69 78 20 69 6e 69 74 69 61 6c n Matrix initial
7bc0: 69 7a 65 64 20 77 69 74 68 20 65 78 70 6c 69 63 ized with explic
7bd0: 69 74 20 76 61 6c 75 65 73 2e 3c 62 72 3e 0d 0a it values.<br>..
7be0: 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 6f NULL if any erro
7bf0: 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 r occurs or on i
7c00: 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 nvalid arguments
7c10: 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 .</td></tr>..<tr
7c20: 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 ><td><b>ATM_Crea
7c30: 74 65 20 28 20 64 6f 75 62 6c 65 20 61 20 2c 20 te ( double a ,
7c40: 64 6f 75 62 6c 65 20 62 20 2c 20 64 6f 75 62 6c double b , doubl
7c50: 65 20 63 20 2c 20 64 6f 75 62 6c 65 20 64 20 2c e c , double d ,
7c60: 20 64 6f 75 62 6c 65 20 65 20 2c 20 64 6f 75 62 double e , doub
7c70: 6c 65 20 66 20 2c 20 64 6f 75 62 6c 65 20 67 20 le f , double g
7c80: 2c 20 64 6f 75 62 6c 65 20 68 20 2c 20 64 6f 75 , double h , dou
7c90: 62 6c 65 20 69 20 2c 20 64 6f 75 62 6c 65 20 78 ble i , double x
7ca0: 6f 66 66 20 2c 20 64 6f 75 62 6c 65 20 79 6f 66 off , double yof
7cb0: 66 20 2c 20 64 6f 75 62 6c 65 20 64 6f 75 62 6c f , double doubl
7cc0: 65 20 7a 6f 66 66 20 29 20 3a 20 42 4c 4f 42 20 e zoff ) : BLOB
7cd0: 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 AT-matrix</b></t
7ce0: 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 d><td>Will retur
7cf0: 6e 20 61 20 33 44 20 41 66 66 69 6e 65 20 54 72 n a 3D Affine Tr
7d00: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 ansformation Mat
7d10: 72 69 78 20 69 6e 69 74 69 61 6c 69 7a 65 64 20 rix initialized
7d20: 77 69 74 68 20 65 78 70 6c 69 63 69 74 20 76 61 with explicit va
7d30: 6c 75 65 73 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 lues.<br>..NULL
7d40: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 if any error occ
7d50: 75 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 urs or on invali
7d60: 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 d arguments.</td
7d70: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
7d80: 3c 62 3e 41 54 4d 5f 43 72 65 61 74 65 54 72 61 <b>ATM_CreateTra
7d90: 6e 73 6c 61 74 65 20 28 20 64 6f 75 62 6c 65 20 nslate ( double
7da0: 74 78 20 2c 20 64 6f 75 62 6c 65 20 74 79 20 29 tx , double ty )
7db0: 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 : BLOB AT-matri
7dc0: 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 54 x</b><br>..<b>AT
7dd0: 4d 5f 43 72 65 61 74 65 54 72 61 6e 73 6c 61 74 M_CreateTranslat
7de0: 65 20 28 20 64 6f 75 62 6c 65 20 74 78 20 2c 20 e ( double tx ,
7df0: 64 6f 75 62 6c 65 20 74 79 20 2c 20 64 6f 75 62 double ty , doub
7e00: 6c 65 20 74 7a 20 29 20 3a 20 42 4c 4f 42 20 41 le tz ) : BLOB A
7e10: 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 T-matrix</b></td
7e20: 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e ><td>Will return
7e30: 20 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 an Affine Trans
7e40: 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 formation Matrix
7e50: 20 69 6e 69 74 69 61 6c 69 7a 65 64 20 72 65 73 initialized res
7e60: 70 65 63 74 69 76 65 6c 79 20 61 73 20 61 20 32 pectively as a 2
7e70: 44 20 6f 72 20 33 44 20 54 72 61 6e 73 6c 61 74 D or 3D Translat
7e80: 65 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 e.<br>..NULL if
7e90: 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 73 any error occurs
7ea0: 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 or on invalid a
7eb0: 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f rguments.</td></
7ec0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e tr>..<tr><td><b>
7ed0: 41 54 4d 5f 43 72 65 61 74 65 53 63 61 6c 65 20 ATM_CreateScale
7ee0: 28 20 64 6f 75 62 6c 65 20 73 78 20 2c 20 64 6f ( double sx , do
7ef0: 75 62 6c 65 20 73 79 20 29 20 3a 20 42 4c 4f 42 uble sy ) : BLOB
7f00: 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 62 AT-matrix</b><b
7f10: 72 3e 0d 0a 3c 62 3e 41 54 4d 5f 43 72 65 61 74 r>..<b>ATM_Creat
7f20: 65 53 63 61 6c 65 20 28 20 64 6f 75 62 6c 65 20 eScale ( double
7f30: 73 78 20 2c 20 64 6f 75 62 6c 65 20 73 79 20 2c sx , double sy ,
7f40: 20 64 6f 75 62 6c 65 20 73 7a 20 29 20 3a 20 42 double sz ) : B
7f50: 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 LOB AT-matrix</b
7f60: 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 ></td><td>Will r
7f70: 65 74 75 72 6e 20 61 6e 20 41 66 66 69 6e 65 20 eturn an Affine
7f80: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d Transformation M
7f90: 61 74 72 69 78 20 69 6e 69 74 69 61 6c 69 7a 65 atrix initialize
7fa0: 64 20 72 65 73 70 65 63 74 69 76 65 6c 79 20 61 d respectively a
7fb0: 73 20 61 20 32 44 20 6f 72 20 33 44 20 53 63 61 s a 2D or 3D Sca
7fc0: 6c 65 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 le.<br>..NULL if
7fd0: 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 any error occur
7fe0: 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 s or on invalid
7ff0: 61 72 67 75 6d 65 6e 74 73 2e 2e 3c 2f 74 64 3e arguments..</td>
8000: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c </tr>..<tr><td><
8010: 62 3e 41 54 4d 5f 43 72 65 61 74 65 52 6f 74 61 b>ATM_CreateRota
8020: 74 65 20 28 20 64 6f 75 62 6c 65 20 61 6e 67 6c te ( double angl
8030: 65 49 6e 44 65 67 72 65 65 73 20 29 20 3a 20 42 eInDegrees ) : B
8040: 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 LOB AT-matrix</b
8050: 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 54 4d 5f 43 72 ><br>..<b>ATM_Cr
8060: 65 61 74 65 5a 52 6f 6c 6c 20 28 20 64 6f 75 62 eateZRoll ( doub
8070: 6c 65 20 61 6e 67 6c 65 49 6e 44 65 67 72 65 65 le angleInDegree
8080: 73 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 s ) : BLOB AT-ma
8090: 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 trix</b></td><td
80a0: 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 >Will return an
80b0: 41 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d Affine Transform
80c0: 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 69 6e 69 ation Matrix ini
80d0: 74 69 61 6c 69 7a 65 64 20 61 73 20 52 6f 74 61 tialized as Rota
80e0: 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 65 20 tion around the
80f0: 5a 20 61 78 69 73 2e 3c 62 72 3e 0d 0a 4e 55 4c Z axis.<br>..NUL
8100: 4c 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f L if any error o
8110: 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 ccurs or on inva
8120: 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 68 lid arguments.<h
8130: 72 3e 0d 0a 54 68 65 20 61 6e 67 6c 65 20 69 73 r>..The angle is
8140: 20 61 6c 77 61 79 73 20 65 78 70 65 63 74 65 64 always expected
8150: 20 74 6f 20 62 65 20 6d 65 61 73 75 72 65 64 20 to be measured
8160: 69 6e 20 64 65 63 69 6d 61 6c 20 64 65 67 72 65 in decimal degre
8170: 65 73 2e 20 54 68 65 20 64 69 72 65 63 74 69 6f es. The directio
8180: 6e 20 6f 66 20 72 6f 74 61 74 69 6f 6e 20 69 73 n of rotation is
8190: 20 64 65 66 69 6e 65 64 20 73 75 63 68 20 74 68 defined such th
81a0: 61 74 20 70 6f 73 69 74 69 76 65 20 61 6e 67 6c at positive angl
81b0: 65 73 20 72 6f 74 61 74 65 20 69 6e 20 74 68 65 es rotate in the
81c0: 20 64 69 72 65 63 74 69 6f 6e 20 66 72 6f 6d 20 direction from
81d0: 74 68 65 20 70 6f 73 69 74 69 76 65 20 58 20 61 the positive X a
81e0: 78 69 73 20 74 6f 77 61 72 64 20 74 68 65 20 70 xis toward the p
81f0: 6f 73 69 74 69 76 65 20 59 20 61 78 69 73 2e 20 ositive Y axis.
8200: 57 69 74 68 20 74 68 65 20 64 65 66 61 75 6c 74 With the default
8210: 20 61 78 69 73 20 6f 72 69 65 6e 74 61 74 69 6f axis orientatio
8220: 6e 20 20 70 6f 73 69 74 69 76 65 20 61 6e 67 6c n positive angl
8230: 65 73 20 72 6f 74 61 74 65 20 69 6e 20 61 20 63 es rotate in a c
8240: 6f 75 6e 74 65 72 63 6c 6f 63 6b 77 69 73 65 20 ounterclockwise
8250: 64 69 72 65 63 74 69 6f 6e 2e 3c 68 72 3e 0d 0a direction.<hr>..
8260: 3c 75 3e 4e 6f 74 65 3c 2f 75 3e 3a 20 74 68 69 <u>Note</u>: thi
8270: 73 20 69 73 20 74 68 65 20 75 6e 69 71 75 65 20 s is the unique
8280: 72 6f 74 61 74 69 6f 6e 20 61 6c 6c 6f 77 65 64 rotation allowed
8290: 20 6f 6e 20 61 20 70 75 72 65 6c 79 20 32 44 20 on a purely 2D
82a0: 70 6c 61 6e 65 2e 3c 2f 74 64 3e 3c 2f 74 72 3e plane.</td></tr>
82b0: 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d ..<tr><td><b>ATM
82c0: 5f 43 72 65 61 74 65 58 52 6f 6c 6c 20 28 20 64 _CreateXRoll ( d
82d0: 6f 75 62 6c 65 20 61 6e 67 6c 65 49 6e 44 65 67 ouble angleInDeg
82e0: 72 65 65 73 20 29 20 3a 20 42 4c 4f 42 20 41 54 rees ) : BLOB AT
82f0: 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e -matrix</b></td>
8300: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 <td>Will return
8310: 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 an Affine Transf
8320: 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 ormation Matrix
8330: 69 6e 69 74 69 61 6c 69 7a 65 64 20 61 73 20 52 initialized as R
8340: 6f 74 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 otation around t
8350: 68 65 20 58 20 61 78 69 73 2e 3c 62 72 3e 0d 0a he X axis.<br>..
8360: 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 6f NULL if any erro
8370: 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 69 r occurs or on i
8380: 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 nvalid arguments
8390: 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 .</td></tr>..<tr
83a0: 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 43 72 65 61 ><td><b>ATM_Crea
83b0: 74 65 59 52 6f 6c 6c 20 28 20 64 6f 75 62 6c 65 teYRoll ( double
83c0: 20 61 6e 67 6c 65 49 6e 44 65 67 72 65 65 73 20 angleInDegrees
83d0: 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 ) : BLOB AT-matr
83e0: 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 ix</b></td><td>W
83f0: 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 41 66 ill return an Af
8400: 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 fine Transformat
8410: 69 6f 6e 20 4d 61 74 72 69 78 20 69 6e 69 74 69 ion Matrix initi
8420: 61 6c 69 7a 65 64 20 61 73 20 52 6f 74 61 74 69 alized as Rotati
8430: 6f 6e 20 61 72 6f 75 6e 64 20 74 68 65 20 59 20 on around the Y
8440: 61 78 69 73 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 axis.<br>..NULL
8450: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 if any error occ
8460: 75 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 urs or on invali
8470: 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 d arguments.</td
8480: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 68 20 ></tr>..<tr><th
8490: 63 6f 6c 73 70 61 6e 3d 22 32 22 20 62 67 63 6f colspan="2" bgco
84a0: 6c 6f 72 3d 22 23 46 30 45 36 38 43 22 20 61 6c lor="#F0E68C" al
84b0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 53 51 4c ign="center">SQL
84c0: 20 66 75 6e 63 74 69 6f 6e 73 20 73 75 70 70 6f functions suppo
84d0: 72 74 69 6e 67 20 63 68 61 69 6e 69 6e 67 20 74 rting chaining t
84e0: 77 6f 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 wo Affine Transf
84f0: 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 63 65 ormation Matrice
8500: 73 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 s</th></tr>..<tr
8510: 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 54 72 61 6e ><td><b>ATM_Tran
8520: 73 6c 61 74 65 20 28 20 42 4c 4f 42 20 41 54 2d slate ( BLOB AT-
8530: 6d 61 74 72 69 78 20 2c 20 64 6f 75 62 6c 65 20 matrix , double
8540: 74 78 20 2c 20 64 6f 75 62 6c 65 20 74 79 20 29 tx , double ty )
8550: 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 : BLOB AT-matri
8560: 78 3c 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 54 x</b><br>..<b>AT
8570: 4d 5f 54 72 61 6e 73 6c 61 74 65 20 28 20 42 4c M_Translate ( BL
8580: 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 2c 20 64 OB AT-matrix , d
8590: 6f 75 62 6c 65 20 74 78 20 2c 20 64 6f 75 62 6c ouble tx , doubl
85a0: 65 20 74 79 20 2c 20 64 6f 75 62 6c 65 20 74 7a e ty , double tz
85b0: 20 29 20 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 ) : BLOB AT-mat
85c0: 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e rix</b></td><td>
85d0: 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 41 Will return an A
85e0: 66 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 ffine Transforma
85f0: 74 69 6f 6e 20 4d 61 74 72 69 78 20 62 79 20 63 tion Matrix by c
8600: 68 61 69 6e 69 6e 67 20 72 65 73 70 65 63 74 69 haining respecti
8610: 76 65 6c 79 20 61 20 32 44 20 6f 72 20 33 44 20 vely a 2D or 3D
8620: 54 72 61 6e 73 6c 61 74 65 20 61 6e 64 20 61 6e Translate and an
8630: 6f 74 68 65 72 20 41 66 66 69 6e 65 20 54 72 61 other Affine Tra
8640: 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 3e nsformation.<br>
8650: 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 ..NULL if any er
8660: 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e ror occurs or on
8670: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e invalid argumen
8680: 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c ts.</td></tr>..<
8690: 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 53 63 tr><td><b>ATM_Sc
86a0: 61 6c 65 20 28 20 42 4c 4f 42 20 41 54 2d 6d 61 ale ( BLOB AT-ma
86b0: 74 72 69 78 20 2c 20 64 6f 75 62 6c 65 20 73 78 trix , double sx
86c0: 20 2c 20 64 6f 75 62 6c 65 20 73 79 20 29 20 3a , double sy ) :
86d0: 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c BLOB AT-matrix<
86e0: 2f 62 3e 3c 62 72 3e 0d 0a 3c 62 3e 41 54 4d 5f /b><br>..<b>ATM_
86f0: 53 63 61 6c 65 20 28 20 42 4c 4f 42 20 41 54 2d Scale ( BLOB AT-
8700: 6d 61 74 72 69 78 20 2c 20 64 6f 75 62 6c 65 20 matrix , double
8710: 73 78 20 2c 20 64 6f 75 62 6c 65 20 73 79 20 2c sx , double sy ,
8720: 20 64 6f 75 62 6c 65 20 73 7a 20 29 20 3a 20 42 double sz ) : B
8730: 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 3c 2f 62 LOB AT-matrix</b
8740: 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 ></td><td>Will r
8750: 65 74 75 72 6e 20 61 6e 20 41 66 66 69 6e 65 20 eturn an Affine
8760: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 4d Transformation M
8770: 61 74 72 69 78 20 62 79 20 63 68 61 69 6e 69 6e atrix by chainin
8780: 67 20 72 65 73 70 65 63 74 69 76 65 6c 79 20 61 g respectively a
8790: 20 32 44 20 6f 72 20 33 44 20 53 63 61 6c 65 20 2D or 3D Scale
87a0: 61 6e 64 20 61 6e 6f 74 68 65 72 20 41 66 66 69 and another Affi
87b0: 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne Transformatio
87c0: 6e 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 66 20 n.<br>..NULL if
87d0: 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 73 any error occurs
87e0: 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 or on invalid a
87f0: 72 67 75 6d 65 6e 74 73 2e 2e 3c 2f 74 64 3e 3c rguments..</td><
8800: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 /tr>..<tr><td><b
8810: 3e 41 54 4d 5f 52 6f 74 61 74 65 20 28 20 42 4c >ATM_Rotate ( BL
8820: 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 2c 20 64 OB AT-matrix , d
8830: 6f 75 62 6c 65 20 61 6e 67 6c 65 49 6e 44 65 67 ouble angleInDeg
8840: 72 65 65 73 20 29 20 3a 20 42 4c 4f 42 20 41 54 rees ) : BLOB AT
8850: 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 62 72 3e 0d -matrix</b><br>.
8860: 0a 3c 62 3e 41 54 4d 5f 5a 52 6f 6c 6c 20 28 20 .<b>ATM_ZRoll (
8870: 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 2c BLOB AT-matrix ,
8880: 20 64 6f 75 62 6c 65 20 61 6e 67 6c 65 49 6e 44 double angleInD
8890: 65 67 72 65 65 73 20 29 20 3a 20 42 4c 4f 42 20 egrees ) : BLOB
88a0: 41 54 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 AT-matrix</b></t
88b0: 64 3e 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 d><td>Will retur
88c0: 6e 20 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e n an Affine Tran
88d0: 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 sformation Matri
88e0: 78 20 62 79 20 63 68 61 69 6e 69 6e 67 20 61 20 x by chaining a
88f0: 52 6f 74 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 Rotation around
8900: 74 68 65 20 5a 20 61 78 69 73 20 61 6e 64 20 61 the Z axis and a
8910: 6e 6f 74 68 65 72 20 41 66 66 69 6e 65 20 54 72 nother Affine Tr
8920: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 ansformation.<br
8930: 3e 0d 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 >..NULL if any e
8940: 72 72 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f rror occurs or o
8950: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 n invalid argume
8960: 6e 74 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a nts.</td></tr>..
8970: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 41 54 4d 5f 58 <tr><td><b>ATM_X
8980: 52 6f 6c 6c 20 28 20 42 4c 4f 42 20 41 54 2d 6d Roll ( BLOB AT-m
8990: 61 74 72 69 78 20 2c 20 64 6f 75 62 6c 65 20 61 atrix , double a
89a0: 6e 67 6c 65 49 6e 44 65 67 72 65 65 73 20 29 20 ngleInDegrees )
89b0: 3a 20 42 4c 4f 42 20 41 54 2d 6d 61 74 72 69 78 : BLOB AT-matrix
89c0: 3c 2f 62 3e 3c 2f 74 64 3e 3c 74 64 3e 57 69 6c </b></td><td>Wil
89d0: 6c 20 72 65 74 75 72 6e 20 61 6e 20 41 66 66 69 l return an Affi
89e0: 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f ne Transformatio
89f0: 6e 20 4d 61 74 72 69 78 20 62 79 20 63 68 61 69 n Matrix by chai
8a00: 6e 69 6e 67 20 61 20 52 6f 74 61 74 69 6f 6e 20 ning a Rotation
8a10: 61 72 6f 75 6e 64 20 74 68 65 20 58 20 61 78 69 around the X axi
8a20: 73 20 61 6e 64 20 61 6e 6f 74 68 65 72 20 41 66 s and another Af
8a30: 66 69 6e 65 20 54 72 61 6e 73 66 6f 72 6d 61 74 fine Transformat
8a40: 69 6f 6e 2e 3c 62 72 3e 0d 0a 4e 55 4c 4c 20 69 ion.<br>..NULL i
8a50: 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 f any error occu
8a60: 72 73 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 rs or on invalid
8a70: 20 61 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e arguments.</td>
8a80: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c </tr>..<tr><td><
8a90: 62 3e 41 54 4d 5f 59 52 6f 6c 6c 20 28 20 42 4c b>ATM_YRoll ( BL
8aa0: 4f 42 20 41 54 2d 6d 61 74 72 69 78 20 2c 20 64 OB AT-matrix , d
8ab0: 6f 75 62 6c 65 20 61 6e 67 6c 65 49 6e 44 65 67 ouble angleInDeg
8ac0: 72 65 65 73 20 29 20 3a 20 42 4c 4f 42 20 41 54 rees ) : BLOB AT
8ad0: 2d 6d 61 74 72 69 78 3c 2f 62 3e 3c 2f 74 64 3e -matrix</b></td>
8ae0: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 <td>Will return
8af0: 61 6e 20 41 66 66 69 6e 65 20 54 72 61 6e 73 66 an Affine Transf
8b00: 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 78 20 ormation Matrix
8b10: 62 79 20 63 68 61 69 6e 69 6e 67 20 61 20 52 6f by chaining a Ro
8b20: 74 61 74 69 6f 6e 20 61 72 6f 75 6e 64 20 74 68 tation around th
8b30: 65 20 59 20 61 78 69 73 20 61 6e 64 20 61 6e 6f e Y axis and ano
8b40: 74 68 65 72 20 41 66 66 69 6e 65 20 54 72 61 6e ther Affine Tran
8b50: 73 66 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 3e 0d sformation.<br>.
8b60: 0a 4e 55 4c 4c 20 69 66 20 61 6e 79 20 65 72 72 .NULL if any err
8b70: 6f 72 20 6f 63 63 75 72 73 20 6f 72 20 6f 6e 20 or occurs or on
8b80: 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 invalid argument
8b90: 73 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 s.</td></tr>..<t
8ba0: 72 3e 3c 74 64 3e 3c 2f 74 64 3e 3c 74 64 3e 0d r><td></td><td>.
8bb0: 0a 3c 75 3e 4e 6f 74 65 3c 2f 75 3e 3a 20 61 6c .<u>Note</u>: al
8bc0: 6c 20 74 68 65 20 61 62 6f 76 65 20 66 75 6e 63 l the above func
8bd0: 74 69 6f 6e 73 20 73 69 6d 70 6c 79 20 61 72 65 tions simply are
8be0: 20 63 6f 6e 76 65 6e 69 65 6e 63 65 20 6d 65 74 convenience met
8bf0: 68 6f 64 73 20 69 6e 74 65 6e 64 65 64 20 74 6f hods intended to
8c00: 20 61 76 6f 69 64 20 61 6e 79 20 6e 65 65 64 20 avoid any need
8c10: 74 6f 20 72 65 70 65 61 74 65 64 6c 79 20 63 61 to repeatedly ca
8c20: 6c 6c 20 3c 62 3e 41 54 4d 5f 4d 75 6c 74 69 70 ll <b>ATM_Multip
8c30: 6c 79 28 29 3c 2f 62 3e 2e 0d 0a 3c 76 65 72 62 ly()</b>...<verb
8c40: 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 41 54 atim>..SELECT AT
8c50: 4d 5f 4d 75 6c 74 69 70 6c 79 28 41 54 4d 5f 43 M_Multiply(ATM_C
8c60: 72 65 61 74 65 52 6f 74 61 74 65 28 31 35 29 2c reateRotate(15),
8c70: 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..
8c80: 20 20 20 20 20 20 20 41 54 4d 5f 4d 75 6c 74 69 ATM_Multi
8c90: 70 6c 79 28 41 54 4d 5f 43 72 65 61 74 65 53 63 ply(ATM_CreateSc
8ca0: 61 6c 65 28 31 2e 31 2c 20 31 2e 32 2c 20 31 2e ale(1.1, 1.2, 1.
8cb0: 33 29 2c 20 0d 0a 20 20 20 20 20 20 20 20 20 20 3), ..
8cc0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
8cd0: 20 20 20 20 20 20 20 41 54 4d 5f 43 72 65 61 74 ATM_Creat
8ce0: 65 54 72 61 6e 73 6c 61 74 65 28 31 30 2c 20 32 eTranslate(10, 2
8cf0: 30 2c 20 33 30 29 29 29 3b 0d 0a 0d 0a 53 45 4c 0, 30)));....SEL
8d00: 45 43 54 20 41 54 4d 5f 52 6f 74 61 74 65 28 0d ECT ATM_Rotate(.
8d10: 0a 20 20 20 20 20 20 20 20 20 20 41 54 4d 5f 53 . ATM_S
8d20: 63 61 6c 65 28 0d 0a 20 20 20 20 20 20 20 20 20 cale(..
8d30: 20 20 20 20 41 54 4d 5f 43 72 65 61 74 65 54 72 ATM_CreateTr
8d40: 61 6e 73 6c 61 74 65 28 31 30 2c 20 32 30 2c 20 anslate(10, 20,
8d50: 33 30 29 2c 20 0d 0a 20 20 20 20 20 20 20 20 20 30), ..
8d60: 20 31 2e 31 2c 20 31 2e 32 2c 20 31 2e 33 29 2c 1.1, 1.2, 1.3),
8d70: 20 0d 0a 20 20 20 20 20 20 20 31 35 29 3b 0d 0a .. 15);..
8d80: 0d 0a 53 45 4c 45 43 54 20 41 54 4d 5f 52 6f 74 ..SELECT ATM_Rot
8d90: 61 74 65 28 0d 0a 20 20 20 20 20 20 20 20 20 20 ate(..
8da0: 41 54 4d 5f 53 63 61 6c 65 28 0d 0a 20 20 20 20 ATM_Scale(..
8db0: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 54 72 61 ATM_Tra
8dc0: 6e 73 6c 61 74 65 28 0d 0a 20 20 20 20 20 20 20 nslate(..
8dd0: 20 20 20 20 20 20 20 20 20 41 54 4d 5f 43 72 65 ATM_Cre
8de0: 61 74 65 28 29 2c 20 0d 0a 20 20 20 20 20 20 20 ate(), ..
8df0: 20 20 20 20 20 20 31 30 2c 20 32 30 2c 20 33 30 10, 20, 30
8e00: 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 31 2e ),.. 1.
8e10: 31 2c 20 31 2e 32 2c 20 31 2e 33 29 2c 0d 0a 20 1, 1.2, 1.3),..
8e20: 20 20 20 20 20 20 31 35 29 3b 0d 0a 3c 2f 76 65 15);..</ve
8e30: 72 62 61 74 69 6d 3e 0d 0a 41 6c 6c 20 74 68 72 rbatim>..All thr
8e40: 65 65 20 73 74 61 74 65 6d 65 6e 74 73 20 77 69 ee statements wi
8e50: 6c 6c 20 72 65 74 75 72 6e 20 65 78 61 63 74 6c ll return exactl
8e60: 79 20 74 68 65 20 73 61 6d 65 20 69 64 65 6e 74 y the same ident
8e70: 69 63 61 6c 20 41 66 66 69 6e 65 20 54 72 61 6e ical Affine Tran
8e80: 73 66 6f 72 6d 61 74 69 6f 6e 20 4d 61 74 72 69 sformation Matri
8e90: 78 3b 20 61 6e 79 77 61 79 20 74 68 65 20 73 65 x; anyway the se
8ea0: 63 6f 6e 64 20 6e 6f 74 61 74 69 6f 6e 20 69 73 cond notation is
8eb0: 20 6f 62 76 69 6f 75 73 6c 79 20 6d 6f 73 74 20 obviously most
8ec0: 63 6f 6e 63 69 73 65 20 61 6e 64 20 6d 6f 72 65 concise and more
8ed0: 20 70 72 61 63 74 69 63 61 6c 20 74 68 61 6e 20 practical than
8ee0: 74 68 65 20 6f 74 68 65 72 20 74 77 6f 2e 3c 62 the other two.<b
8ef0: 72 3e 0d 0a 3c 75 3e 4e 6f 74 65 3c 2f 75 3e 3a r>..<u>Note</u>:
8f00: 20 69 6e 20 61 6e 79 20 63 6f 6d 70 6c 65 78 20 in any complex
8f10: 63 68 61 69 6e 20 6f 66 20 74 72 61 6e 73 66 6f chain of transfo
8f20: 72 6d 61 74 69 6f 6e 73 20 74 68 65 20 3c 62 3e rmations the <b>
8f30: 69 6e 6e 65 72 6d 6f 73 74 3c 2f 62 3e 20 6f 70 innermost</b> op
8f40: 65 72 61 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 eration will be
8f50: 61 70 70 6c 69 65 64 20 3c 62 3e 66 69 72 73 74 applied <b>first
8f60: 3c 2f 62 3e 2c 20 61 6e 64 20 74 68 65 20 3c 62 </b>, and the <b
8f70: 3e 6f 75 74 65 72 6d 6f 73 74 3c 2f 62 3e 20 6f >outermost</b> o
8f80: 70 65 72 61 74 69 6f 6e 20 77 69 6c 6c 20 62 65 peration will be
8f90: 20 61 70 70 6c 69 65 64 20 3c 62 3e 6c 61 73 74 applied <b>last
8fa0: 3c 2f 62 3e 2e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 </b>...</td></tr
8fb0: 3e 0d 0a 3c 74 61 62 6c 65 3e 3c 62 72 3e 3c 62 >..<table><br><b
8fc0: 72 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 3e 3a r>..<b>Note</b>:
8fd0: 20 74 68 65 20 53 51 4c 20 69 6e 74 65 72 66 61 the SQL interfa
8fe0: 63 65 20 73 75 70 70 6f 72 74 69 6e 67 20 41 66 ce supporting Af
8ff0: 66 69 6e 65 20 54 72 61 73 66 6f 72 6d 61 74 69 fine Trasformati
9000: 6f 6e 73 20 69 73 20 64 65 73 69 67 6e 65 64 20 ons is designed
9010: 69 6e 20 73 75 63 68 20 61 20 77 61 79 20 74 68 in such a way th
9020: 61 74 20 61 6e 79 20 63 6f 6d 70 6c 65 78 69 74 at any complexit
9030: 79 20 61 6e 64 20 64 69 66 66 69 63 75 6c 74 79 y and difficulty
9040: 20 72 65 71 75 69 72 65 64 20 69 6e 20 6f 72 64 required in ord
9050: 65 72 20 74 6f 20 64 69 72 65 63 74 6c 79 20 68 er to directly h
9060: 61 6e 64 6c 65 20 6d 61 74 72 69 63 69 61 6c 20 andle matricial
9070: 6f 70 65 72 61 74 69 6f 6e 73 20 69 73 20 63 6f operations is co
9080: 6d 70 6c 65 74 65 6c 79 20 68 69 64 64 65 6e 2e mpletely hidden.
9090: 3c 62 72 3e 0d 0a 59 6f 75 20 61 72 65 20 73 69 <br>..You are si
90a0: 6d 70 6c 79 20 72 65 71 75 69 72 65 64 20 74 6f mply required to
90b0: 20 63 68 61 69 6e 20 73 65 76 65 72 61 6c 20 65 chain several e
90c0: 6c 65 6d 65 6e 74 61 72 79 20 74 72 61 6e 73 66 lementary transf
90d0: 6f 72 6d 61 74 69 6f 6e 73 2c 20 65 61 63 68 20 ormations, each
90e0: 6f 6e 65 20 6f 66 20 74 68 65 6d 20 62 61 73 69 one of them basi
90f0: 63 61 6c 6c 79 20 73 69 6d 70 6c 65 2c 20 69 6e cally simple, in
9100: 20 74 68 65 20 63 6f 72 72 65 63 74 20 73 65 71 the correct seq
9110: 75 65 6e 63 65 20 61 6e 64 20 74 68 61 74 27 73 uence and that's
9120: 20 61 62 73 6f 6c 75 74 65 6c 79 20 61 6c 6c 2e absolutely all.
9130: 3c 62 72 3e 0d 0a 3c 62 3e 41 54 4d 3c 2f 62 3e <br>..<b>ATM</b>
9140: 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 77 SQL functions w
9150: 69 6c 6c 20 3c 69 3e 3c 75 3e 6d 61 67 69 63 61 ill <i><u>magica
9160: 6c 6c 79 20 61 6e 64 20 73 69 6c 65 6e 74 6c 79 lly and silently
9170: 3c 2f 75 3e 3c 2f 69 3e 20 6b 65 65 70 20 63 61 </u></i> keep ca
9180: 72 65 20 6f 66 20 61 6e 79 20 6d 61 74 68 65 6d re of any mathem
9190: 61 74 69 63 61 6c 20 63 6f 6d 70 6c 65 78 69 74 atical complexit
91a0: 79 2e 3c 62 72 3e 3c 62 72 3e 20 20 0d 0a 3c 68 y.<br><br> ..<h
91b0: 72 3e 3c 62 72 3e 0d 0a 3c 61 20 68 72 65 66 3d r><br>..<a href=
91c0: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
91d0: 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c 2f a-gis.it/fossil/
91e0: 6c 69 62 73 70 61 74 69 61 6c 69 74 65 2f 77 69 libspatialite/wi
91f0: 6b 69 3f 6e 61 6d 65 3d 34 2e 32 2e 30 2d 64 6f ki?name=4.2.0-do
9200: 63 22 3e 62 61 63 6b 3c 2f 61 3e 0a 5a 20 35 62 c">back</a>.Z 5b
9210: 32 66 62 64 34 31 35 64 39 64 37 32 61 65 33 37 2fbd415d9d72ae37
9220: 32 30 34 64 62 39 35 37 37 39 61 33 66 30 0a 204db95779a3f0.