home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: height.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document, ASCII text, with CRLF line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[CRLF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 48 65 69 67 68 74 20 |\chapter|{Height |
|00000010| 46 69 65 6c 64 20 46 69 | 6c 65 73 7d 0d 0a 0d 0a |Field Fi|les}....|
|00000020| 54 68 69 73 20 61 70 70 | 65 6e 64 69 78 20 64 65 |This app|endix de|
|00000030| 73 63 72 69 62 65 73 20 | 74 68 65 20 66 6f 72 6d |scribes |the form|
|00000040| 61 74 20 6f 66 20 74 68 | 65 20 66 69 6c 65 73 20 |at of th|e files |
|00000050| 74 68 61 74 20 73 74 6f | 72 65 20 64 61 74 61 0d |that sto|re data.|
|00000060| 0a 66 6f 72 20 74 68 65 | 20 68 65 69 67 68 74 20 |.for the| height |
|00000070| 66 69 65 6c 64 20 70 72 | 69 6d 69 74 69 76 65 2e |field pr|imitive.|
|00000080| 0d 0a 54 68 65 20 66 6f | 72 6d 61 74 20 69 73 20 |..The fo|rmat is |
|00000090| 61 6e 20 68 69 73 74 6f | 72 69 63 61 6c 20 72 65 |an histo|rical re|
|000000a0| 6c 69 63 3b 20 61 20 62 | 65 74 74 65 72 20 66 6f |lic; a b|etter fo|
|000000b0| 72 6d 61 74 20 69 73 20 | 6e 65 65 64 65 64 2e 0d |rmat is |needed..|
|000000c0| 0a 0d 0a 48 65 69 67 68 | 74 20 66 69 65 6c 64 20 |...Heigh|t field |
|000000d0| 64 61 74 61 20 69 73 20 | 73 74 6f 72 65 64 20 69 |data is |stored i|
|000000e0| 6e 20 62 69 6e 61 72 79 | 20 66 6f 72 6d 2e 0d 0a |n binary| form...|
|000000f0| 54 68 65 20 66 69 72 73 | 74 20 72 65 63 6f 72 64 |The firs|t record|
|00000100| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | in the |file is |
|00000110| 61 0d 0a 33 32 2d 62 69 | 74 20 69 6e 74 65 67 65 |a..32-bi|t intege|
|00000120| 72 20 67 69 76 69 6e 67 | 20 74 68 65 20 73 71 75 |r giving| the squ|
|00000130| 61 72 65 20 72 6f 6f 74 | 20 6f 66 20 6e 75 6d 62 |are root| of numb|
|00000140| 65 72 20 6f 66 20 64 61 | 74 61 0d 0a 70 6f 69 6e |er of da|ta..poin|
|00000150| 74 73 20 69 6e 20 74 68 | 65 20 66 69 6c 65 2e 0d |ts in th|e file..|
|00000160| 0a 57 65 27 6c 6c 20 63 | 61 6c 6c 20 74 68 69 73 |.We'll c|all this|
|00000170| 20 6e 75 6d 62 65 72 0d | 0a 74 68 65 20 73 69 7a | number.|.the siz|
|00000180| 65 20 6f 66 20 74 68 65 | 20 68 65 69 67 68 74 20 |e of the| height |
|00000190| 66 69 65 6c 64 2e 0d 0a | 0d 0a 54 68 65 20 73 69 |field...|..The si|
|000001a0| 7a 65 20 69 73 0d 0a 66 | 6f 6c 6c 6f 77 65 64 20 |ze is..f|ollowed |
|000001b0| 62 79 20 61 6c 74 69 74 | 75 64 65 20 28 24 7a 24 |by altit|ude ($z$|
|000001c0| 29 20 76 61 6c 75 65 73 | 20 73 74 6f 72 65 64 20 |) values| stored |
|000001d0| 61 73 20 33 32 2d 62 69 | 74 0d 0a 66 6c 6f 61 74 |as 32-bi|t..float|
|000001e0| 69 6e 67 20 70 6f 69 6e | 74 20 76 61 6c 75 65 73 |ing poin|t values|
|000001f0| 2e 20 20 54 68 65 20 30 | 74 68 20 76 61 6c 75 65 |. The 0|th value|
|00000200| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 73 70 65 | in the |file spe|
|00000210| 63 69 66 69 65 73 20 74 | 68 65 20 24 7a 24 0d 0a |cifies t|he $z$..|
|00000220| 63 6f 6f 72 64 69 6e 61 | 74 65 0d 0a 6f 66 20 74 |coordina|te..of t|
|00000230| 68 65 20 6c 6f 77 65 72 | 2d 6c 65 66 74 20 63 6f |he lower|-left co|
|00000240| 72 6e 65 72 20 6f 66 20 | 74 68 65 20 68 65 69 67 |rner of |the heig|
|00000250| 68 74 20 66 69 65 6c 64 | 20 28 30 2c 20 30 29 2e |ht field| (0, 0).|
|00000260| 0d 0a 54 68 65 20 6e 65 | 78 74 0d 0a 73 70 65 63 |..The ne|xt..spec|
|00000270| 69 66 69 65 73 20 74 68 | 65 20 5a 20 63 6f 6f 72 |ifies th|e Z coor|
|00000280| 64 69 6e 61 74 65 20 66 | 6f 72 20 24 28 31 2f 28 |dinate f|or $(1/(|
|00000290| 73 69 7a 65 2d 31 29 2c | 20 30 29 24 2e 20 20 54 |size-1),| 0)$. T|
|000002a0| 68 65 20 6c 61 73 74 20 | 73 70 65 63 69 66 69 65 |he last |specifie|
|000002b0| 73 20 74 68 65 0d 0a 63 | 6f 6f 72 64 69 6e 61 74 |s the..c|oordinat|
|000002c0| 65 20 66 6f 72 20 24 28 | 31 2e 2c 20 31 2e 29 24 |e for $(|1., 1.)$|
|000002d0| 2e 20 20 49 6e 20 6f 74 | 68 65 72 20 77 6f 72 64 |. In ot|her word|
|000002e0| 73 2c 20 74 68 65 20 24 | 69 5e 7b 74 68 7d 24 20 |s, the $|i^{th}$ |
|000002f0| 76 61 6c 75 65 20 0d 0a | 69 6e 20 74 68 65 20 68 |value ..|in the h|
|00000300| 65 69 67 68 74 66 69 65 | 6c 64 20 66 69 6c 65 20 |eightfie|ld file |
|00000310| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 24 7a |specifie|s the $z|
|00000320| 24 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 66 6f 72 |$ coordi|nate for|
|00000330| 20 74 68 65 20 70 6f 69 | 6e 74 0d 0a 77 68 6f 73 | the poi|nt..whos|
|00000340| 65 20 24 78 24 20 63 6f | 6f 72 64 69 6e 61 74 65 |e $x$ co|ordinate|
|00000350| 20 69 73 0d 0a 24 28 69 | 20 5c 25 20 73 69 7a 65 | is..$(i| \% size|
|00000360| 29 20 2f 20 28 73 69 7a | 65 20 2d 31 29 24 2c 20 |) / (siz|e -1)$, |
|00000370| 61 6e 64 20 77 68 6f 73 | 65 0d 0a 24 79 24 20 63 |and whos|e..$y$ c|
|00000380| 6f 6f 72 64 69 6e 61 74 | 65 20 69 73 20 24 28 69 |oordinat|e is $(i|
|00000390| 20 2f 20 73 69 7a 65 29 | 20 2f 20 28 73 69 7a 65 | / size)| / (size|
|000003a0| 20 2d 31 29 24 2e 0d 0a | 4e 6f 6e 2d 73 71 75 61 | -1)$...|Non-squa|
|000003b0| 72 65 20 68 65 69 67 68 | 74 20 66 69 65 6c 64 73 |re heigh|t fields|
|000003c0| 20 6d 61 79 20 62 65 20 | 72 65 6e 64 65 72 65 64 | may be |rendered|
|000003d0| 20 62 79 20 73 70 65 63 | 69 66 79 69 6e 67 20 61 | by spec|ifying a|
|000003e0| 6c 74 69 74 75 64 65 20 | 76 61 6c 75 65 73 0d 0a |ltitude |values..|
|000003f0| 6c 65 73 73 20 74 68 61 | 6e 20 6f 72 20 65 71 75 |less tha|n or equ|
|00000400| 61 6c 20 74 6f 20 74 68 | 65 20 6d 61 67 69 63 20 |al to th|e magic |
|00000410| 76 61 6c 75 65 0d 0a 24 | 2d 31 30 30 30 24 2e 20 |value..$|-1000$. |
|00000420| 20 54 72 69 61 6e 67 6c | 65 73 20 74 68 61 74 20 | Triangl|es that |
|00000430| 68 61 76 65 20 61 6e 79 | 20 76 65 72 74 65 78 20 |have any| vertex |
|00000440| 6c 65 73 73 20 74 68 61 | 6e 0d 0a 6f 72 20 65 71 |less tha|n..or eq|
|00000450| 75 61 6c 20 69 6e 20 61 | 6c 74 69 74 75 64 65 20 |ual in a|ltitude |
|00000460| 74 6f 20 74 68 69 73 20 | 76 61 6c 75 65 20 61 72 |to this |value ar|
|00000470| 65 20 6e 6f 74 20 72 65 | 6e 64 65 72 65 64 2e 0d |e not re|ndered..|
|00000480| 0a 0d 0a 57 68 69 6c 65 | 20 74 68 69 73 20 66 69 |...While| this fi|
|00000490| 6c 65 20 66 6f 72 6d 61 | 74 20 69 73 20 63 6f 6d |le forma|t is com|
|000004a0| 70 61 63 74 2c 20 69 74 | 20 73 61 63 72 69 66 69 |pact, it| sacrifi|
|000004b0| 63 65 73 20 70 6f 72 74 | 61 62 69 6c 69 74 79 20 |ces port|ability |
|000004c0| 66 6f 72 0d 0a 65 61 73 | 65 20 6f 66 20 75 73 65 |for..eas|e of use|
|000004d0| 2e 20 20 57 68 69 6c 65 | 20 63 72 65 61 74 69 6e |. While| creatin|
|000004e0| 67 20 61 6e 64 20 68 61 | 6e 64 6c 69 6e 67 20 68 |g and ha|ndling h|
|000004f0| 65 69 67 68 74 20 66 69 | 65 6c 64 20 66 69 6c 65 |eight fi|eld file|
|00000500| 73 20 69 73 0d 0a 73 69 | 6d 70 6c 65 2c 20 74 72 |s is..si|mple, tr|
|00000510| 61 6e 73 70 6f 72 74 69 | 6e 67 20 61 20 68 65 69 |ansporti|ng a hei|
|00000520| 67 68 74 20 66 69 65 6c | 64 20 66 72 6f 6d 20 6f |ght fiel|d from o|
|00000530| 6e 65 20 6d 61 63 68 69 | 6e 65 20 74 6f 20 61 6e |ne machi|ne to an|
|00000540| 6f 74 68 65 72 0d 0a 69 | 73 20 70 72 6f 62 6c 65 |other..i|s proble|
|00000550| 6d 61 74 69 63 61 6c 20 | 64 75 65 20 74 6f 20 74 |matical |due to t|
|00000560| 68 65 20 66 61 63 74 20 | 74 68 61 74 20 64 69 66 |he fact |that dif|
|00000570| 66 65 72 65 6e 63 65 73 | 20 69 6e 20 62 79 74 65 |ferences| in byte|
|00000580| 20 6f 72 64 65 72 0d 0a | 61 6e 64 20 66 6c 6f 61 | order..|and floa|
|00000590| 74 69 6e 67 2d 70 6f 69 | 6e 74 20 66 6f 72 6d 61 |ting-poi|nt forma|
|000005a0| 74 20 62 65 74 77 65 65 | 6e 20 6d 61 63 68 69 6e |t betwee|n machin|
|000005b0| 65 73 20 69 73 20 6e 6f | 74 20 74 61 6b 65 6e 20 |es is no|t taken |
|000005c0| 69 6e 74 6f 0d 0a 61 63 | 63 6f 75 6e 74 2e 0d 0a |into..ac|count...|
|000005d0| 0d 0a 54 68 65 73 65 20 | 70 72 6f 62 6c 65 6d 73 |..These |problems|
|000005e0| 20 63 6f 75 6c 64 20 62 | 65 20 63 69 72 63 75 6d | could b|e circum|
|000005f0| 76 65 6e 74 65 64 20 62 | 79 20 77 72 69 74 69 6e |vented b|y writin|
|00000600| 67 20 74 68 65 20 68 65 | 69 67 68 74 20 66 69 65 |g the he|ight fie|
|00000610| 6c 64 20 66 69 6c 65 0d | 0a 69 6e 20 61 20 66 69 |ld file.|.in a fi|
|00000620| 78 65 64 2d 70 6f 69 6e | 74 20 66 6f 72 6d 61 74 |xed-poin|t format|
|00000630| 2c 20 74 61 6b 69 6e 67 | 20 63 61 72 65 20 74 6f |, taking| care to|
|00000640| 20 77 72 69 74 65 20 74 | 68 65 20 62 79 74 65 73 | write t|he bytes|
|00000650| 20 74 68 61 74 0d 0a 65 | 6e 63 6f 64 65 20 61 20 | that..e|ncode a |
|00000660| 67 69 76 65 6e 20 76 61 | 6c 75 65 20 69 6e 20 61 |given va|lue in a|
|00000670| 20 63 6f 6e 73 69 73 74 | 65 6e 74 20 77 61 79 20 | consist|ent way |
|00000680| 66 72 6f 6d 20 6d 61 63 | 68 69 6e 65 20 74 6f 20 |from mac|hine to |
|00000690| 6d 61 63 68 69 6e 65 2e | 0d 0a 41 6e 20 65 76 65 |machine.|..An eve|
|000006a0| 6e 20 62 65 74 74 65 72 | 20 69 64 65 61 20 77 6f |n better| idea wo|
|000006b0| 75 6c 64 20 62 65 20 74 | 6f 20 77 72 69 74 65 20 |uld be t|o write |
|000006c0| 61 20 73 65 74 20 6f 66 | 20 74 6f 6f 6c 73 20 66 |a set of| tools f|
|000006d0| 6f 72 0d 0a 6d 61 6e 69 | 70 75 6c 61 74 69 6e 67 |or..mani|pulating|
|000006e0| 20 61 72 62 69 74 72 61 | 72 79 20 32 44 20 61 72 | arbitra|ry 2D ar|
|000006f0| 72 61 79 73 20 6f 66 20 | 66 6c 6f 61 74 69 6e 67 |rays of |floating|
|00000700| 2d 70 6f 69 6e 74 20 76 | 61 6c 75 65 73 20 69 6e |-point v|alues in|
|00000710| 20 61 20 63 6f 6d 70 61 | 63 74 2c 0d 0a 70 6f 72 | a compa|ct,..por|
|00000720| 74 61 62 6c 65 20 77 61 | 79 2c 20 61 6c 6c 6f 77 |table wa|y, allow|
|00000730| 69 6e 67 20 66 6f 72 20 | 63 6f 6d 6d 65 6e 74 73 |ing for |comments|
|00000740| 20 61 6e 64 20 74 68 65 | 20 6c 69 6b 65 20 69 6e | and the| like in|
|00000750| 20 74 68 65 20 66 69 6c | 65 5c 6c 64 6f 74 73 0d | the fil|e\ldots.|
|00000760| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+