/ Garbo
/ Garbo.cdr / mac / util / raytracr.sit / macros.h.bin ![]() | < prev | next > |
MacBinary | 1989-09-14 | 1.3 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | AMOS Picture Packer (image/amosPicturePacker) | ext | Supported |
1% | dexvert | Debian floppy split (archive/debianFloppySplit) | ext | Unsupported |
1% | dexvert | Sound Images sound sample (audio/soundImagesSoundSample) | ext | Unsupported |
1% | dexvert | DESI-III drawing (image/desiIIIDrawing) | ext | Unsupported |
1% | dexvert | MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) | ext | Unsupported |
1% | dexvert | Alien Trilogytextures (other/alienTrilogyTextures) | ext | Unsupported |
1% | dexvert | APT cache data (other/aptCacheData) | ext | Unsupported |
1% | dexvert | CorelTRACE configuration (other/corelTRACEConfiguration) | ext | Unsupported |
1% | dexvert | Dreamcast Disc (other/dreamcastDisc) | ext | Unsupported |
1% | dexvert | EST flat binary (other/estFlatBinary) | ext | Unsupported |
1% | dexvert | Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) | ext | Unsupported |
1% | dexvert | Sega Genesis/Megadrive/32x ROM (other/genesisROM) | ext | Unsupported |
1% | dexvert | Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) | ext | Unsupported |
1% | dexvert | Sound Images Sound Driver (other/soundImagesSoundDriver) | ext | Unsupported |
1% | dexvert | Symantec/Norton Config (other/symantecNortonConfig) | ext | Unsupported |
1% | dexvert | Vectrex ROM (other/vectrexROM) | ext | Unsupported |
1% | dexvert | BIS raP encoded format (other/bisraPEncoded) | ext | Unsupported |
1% | dexvert | Pascal Script binary (other/pascalScriptBinary) | ext | Unsupported |
1% | dexvert | 7th Level game data archive (other/seventhLevelGameDataArchive) | ext | Unsupported |
1% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary, Sun Nov 13 05:00:22 1988, modified Sun Nov 13 05:25:54 1988, creator Think C, type ASCII, 1142 bytes "macros.h" | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 1 | default (weak) | |
100% | lsar | MacBinary | default | |
100% | gt2 | MAC Bilddatei | default (weak) |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 6d 61 63 72 6f 73 | 2e 68 00 00 00 00 00 00 |..macros|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 76 00 | 00 00 00 9f a3 0d b6 9f |......v.|........|
|00000060| a3 13 b2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 6d |/* some |of the m|
|00000090| 6f 73 74 20 69 6d 70 6f | 72 74 61 6e 74 20 73 74 |ost impo|rtant st|
|000000a0| 75 66 66 20 69 6e 20 74 | 68 65 20 70 72 6f 67 72 |uff in t|he progr|
|000000b0| 61 6d 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 44 4f |am */.#d|efine DO|
|000000c0| 54 28 76 31 2c 76 32 29 | 20 28 76 31 2e 78 2a 76 |T(v1,v2)| (v1.x*v|
|000000d0| 32 2e 78 2b 76 31 2e 79 | 2a 76 32 2e 79 2b 76 31 |2.x+v1.y|*v2.y+v1|
|000000e0| 2e 7a 2a 76 32 2e 7a 29 | 0d 2f 2a 20 72 65 74 75 |.z*v2.z)|./* retu|
|000000f0| 72 6e 73 20 64 6f 74 20 | 70 72 6f 64 75 63 74 20 |rns dot |product |
|00000100| 6f 66 20 74 77 6f 20 76 | 65 63 74 6f 72 73 20 2a |of two v|ectors *|
|00000110| 2f 0d 23 64 65 66 69 6e | 65 20 4c 4e 32 28 76 29 |/.#defin|e LN2(v)|
|00000120| 09 20 20 20 28 44 4f 54 | 28 76 2c 76 29 29 0d 2f |. (DOT|(v,v))./|
|00000130| 2a 20 72 65 74 75 72 6e | 73 20 74 68 65 20 73 71 |* return|s the sq|
|00000140| 75 61 72 65 20 6f 66 20 | 74 68 65 20 6c 65 6e 67 |uare of |the leng|
|00000150| 74 68 20 6f 66 20 61 20 | 76 65 63 74 6f 72 20 2a |th of a |vector *|
|00000160| 2f 0d 23 64 65 66 69 6e | 65 20 4c 45 4e 28 76 29 |/.#defin|e LEN(v)|
|00000170| 09 20 20 20 73 71 72 74 | 28 4c 4e 32 28 76 29 29 |. sqrt|(LN2(v))|
|00000180| 0d 2f 2a 20 67 75 65 73 | 73 20 2a 2f 0d 23 64 65 |./* gues|s */.#de|
|00000190| 66 69 6e 65 20 58 5a 4c | 28 76 29 09 20 20 20 73 |fine XZL|(v). s|
|000001a0| 71 72 74 28 76 2e 78 2a | 76 2e 78 2b 76 2e 7a 2a |qrt(v.x*|v.x+v.z*|
|000001b0| 76 2e 7a 29 0d 2f 2a 20 | 72 65 74 75 72 6e 73 20 |v.z)./* |returns |
|000001c0| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 69 6e |the comp|onent in|
|000001d0| 20 74 68 65 20 78 7a 20 | 70 6c 61 6e 65 20 6f 66 | the xz |plane of|
|000001e0| 20 61 20 76 65 63 74 6f | 72 20 2a 2f 0d 23 64 65 | a vecto|r */.#de|
|000001f0| 66 69 6e 65 20 53 43 4d | 4c 54 28 73 63 2c 76 63 |fine SCM|LT(sc,vc|
|00000200| 74 29 20 76 63 74 2e 78 | 2a 3d 20 73 63 3b 76 63 |t) vct.x|*= sc;vc|
|00000210| 74 2e 79 2a 3d 20 73 63 | 3b 76 63 74 2e 7a 2a 3d |t.y*= sc|;vct.z*=|
|00000220| 20 73 63 3b 76 63 74 2e | 6c 2a 3d 20 73 63 3b 0d | sc;vct.|l*= sc;.|
|00000230| 2f 2a 20 6d 75 6c 74 69 | 70 6c 69 65 73 20 61 20 |/* multi|plies a |
|00000240| 76 65 74 6f 72 20 62 79 | 20 61 20 73 63 61 6c 61 |vetor by| a scala|
|00000250| 72 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 4d 56 28 |r */.#de|fine MV(|
|00000260| 61 2c 62 2c 63 2c 76 29 | 20 20 20 76 2e 78 3d 20 |a,b,c,v)| v.x= |
|00000270| 61 3b 76 2e 79 3d 20 62 | 3b 76 2e 7a 3d 20 63 3b |a;v.y= b|;v.z= c;|
|00000280| 0d 2f 2a 20 6d 61 6b 65 | 73 20 61 20 76 65 63 74 |./* make|s a vect|
|00000290| 6f 72 2e 20 77 6f 75 6c | 64 6e 27 74 20 6e 65 65 |or. woul|dn't nee|
|000002a0| 64 20 74 68 69 73 20 77 | 69 74 68 20 63 2b 2b 20 |d this w|ith c++ |
|000002b0| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 53 56 28 74 2c |*/.#defi|ne SV(t,|
|000002c0| 75 2c 76 29 20 20 74 2e | 78 3d 75 2e 78 2d 76 2e |u,v) t.|x=u.x-v.|
|000002d0| 78 3b 74 2e 79 3d 75 2e | 79 2d 76 2e 79 3b 74 2e |x;t.y=u.|y-v.y;t.|
|000002e0| 7a 3d 75 2e 7a 2d 76 2e | 7a 3b 0d 2f 2a 73 75 62 |z=u.z-v.|z;./*sub|
|000002f0| 74 72 61 63 74 20 76 65 | 63 74 6f 72 20 74 3d 75 |tract ve|ctor t=u|
|00000300| 2d 76 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 41 56 |-v */.#d|efine AV|
|00000310| 28 74 2c 75 2c 76 29 20 | 20 74 2e 78 3d 75 2e 78 |(t,u,v) | t.x=u.x|
|00000320| 2b 76 2e 78 3b 74 2e 79 | 3d 75 2e 79 2b 76 2e 79 |+v.x;t.y|=u.y+v.y|
|00000330| 3b 74 2e 7a 3d 75 2e 7a | 2b 76 2e 7a 3b 0d 2f 2a |;t.z=u.z|+v.z;./*|
|00000340| 20 61 64 64 20 76 65 63 | 74 6f 72 20 74 3d 75 2b | add vec|tor t=u+|
|00000350| 76 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 4d 54 56 |v */.#de|fine MTV|
|00000360| 28 76 31 2c 6d 2c 76 32 | 29 20 4d 56 28 44 4f 54 |(v1,m,v2|) MV(DOT|
|00000370| 28 6d 2e 78 2c 76 32 29 | 2c 44 4f 54 28 6d 2e 79 |(m.x,v2)|,DOT(m.y|
|00000380| 2c 76 32 29 2c 44 4f 54 | 28 6d 2e 7a 2c 76 32 29 |,v2),DOT|(m.z,v2)|
|00000390| 2c 76 31 29 0d 2f 2a 20 | 6d 75 6c 74 69 70 6c 79 |,v1)./* |multiply|
|000003a0| 20 74 72 61 6e 73 70 6f | 73 65 20 6d 61 74 72 69 | transpo|se matri|
|000003b0| 78 20 62 79 20 76 65 63 | 74 6f 72 2e 20 76 31 3d |x by vec|tor. v1=|
|000003c0| 6d 2a 76 32 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |m*v2 */.|.#define|
|000003d0| 20 4c 45 56 45 4c 20 35 | 2f 2a 20 6c 65 76 65 6c | LEVEL 5|/* level|
|000003e0| 73 20 6f 66 20 72 65 63 | 75 72 73 69 6f 6e 20 2a |s of rec|ursion *|
|000003f0| 2f 0d 23 64 65 66 69 6e | 65 20 52 4c 45 56 20 20 |/.#defin|e RLEV |
|00000400| 33 2f 2a 64 6f 6e 27 74 | 20 77 61 6e 74 20 61 73 |3/*don't| want as|
|00000410| 20 6d 61 6e 79 20 69 6e | 73 69 64 65 20 74 68 65 | many in|side the|
|00000420| 20 62 61 6c 6c 2c 20 74 | 61 6b 65 73 20 66 6f 72 | ball, t|akes for|
|00000430| 65 76 65 72 20 61 73 20 | 69 74 20 69 73 2a 2f 0d |ever as |it is*/.|
|00000440| 0d 0d 23 64 65 66 69 6e | 65 20 48 55 47 45 20 39 |..#defin|e HUGE 9|
|00000450| 39 39 39 39 39 39 39 39 | 39 39 2e 30 0d 23 64 65 |99999999|99.0.#de|
|00000460| 66 69 6e 65 20 58 4d 49 | 4e 20 31 30 2e 30 0d 23 |fine XMI|N 10.0.#|
|00000470| 64 65 66 69 6e 65 20 58 | 4d 41 58 20 32 32 30 2e |define X|MAX 220.|
|00000480| 30 0d 23 64 65 66 69 6e | 65 20 59 4d 49 4e 20 31 |0.#defin|e YMIN 1|
|00000490| 30 2e 30 0d 23 64 65 66 | 69 6e 65 20 59 4d 41 58 |0.0.#def|ine YMAX|
|000004a0| 20 31 37 30 2e 30 0d 2f | 2a 20 77 69 6e 64 6f 77 | 170.0./|* window|
|000004b0| 20 73 69 7a 65 2c 20 20 | 76 69 72 74 75 61 6c 20 | size, |virtual |
|000004c0| 75 6e 69 74 73 20 2a 2f | 0d 23 64 65 66 69 6e 65 |units */|.#define|
|000004d0| 20 53 43 41 4c 45 20 20 | 32 2e 30 0d 2f 2a 20 6d | SCALE |2.0./* m|
|000004e0| 61 67 6e 69 66 69 63 61 | 74 69 6f 6e 20 66 61 63 |agnifica|tion fac|
|000004f0| 74 6f 72 20 2a 2f 00 00 | 00 00 00 00 00 00 00 00 |tor */..|........|
+--------+-------------------------+-------------------------+--------+--------+