home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / 2D_3D / Tester3D / article3D.wn < prev    next >
Unknown  |  1993-12-05  |  9.2 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Wanton Packer Module (music/wantonPacker) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 04 00 24 8f 04 00 02 14 |........|..$.....|
|00000010| 04 00 02 22 04 00 02 0c | 04 00 02 24 00 05 46 50 |..."....|...$..FP|
|00000020| 00 05 46 4c 00 05 46 48 | 00 05 46 58 00 05 46 54 |..FL..FH|..FX..FT|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 ff 00 00 | ff 00 00 00 02 00 03 3a |........|.......:|
|00000050| 00 00 04 f8 02 64 00 00 | 00 00 00 39 00 00 00 00 |.....d..|...9....|
|00000060| 00 00 00 00 00 39 00 00 | 00 00 ff 00 00 00 00 00 |.....9..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 64 00 00 00 48 00 48 |........|.d...H.H|
|00000080| 00 01 00 18 03 18 02 64 | 00 00 00 00 02 da 02 2f |.......d|......./|
|00000090| 00 64 00 04 32 00 04 00 | 22 aa 01 b8 04 a8 01 c1 |.d..2...|".......|
|000000a0| 00 0e 04 00 22 aa 01 b8 | 04 a8 01 c1 00 0e fc 73 |...."...|.......s|
|000000b0| 00 00 12 a5 00 00 00 00 | ff 00 00 00 00 00 00 00 |........|........|
|000000c0| 24 bb 00 00 24 bb 00 00 | 24 bb 00 00 62 5b 00 00 |$...$...|$...b[..|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 13 ab | 04 00 02 14 04 00 02 22 |........|......."|
|00000110| 04 00 02 0c 04 00 02 24 | 00 05 46 50 00 05 46 4c |.......$|..FP..FL|
|00000120| 00 05 46 48 00 05 46 58 | 00 05 46 54 00 00 00 00 |..FH..FX|..FT....|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 ff 00 00 ff 00 00 00 | 02 00 01 07 00 00 02 c5 |........|........|
|00000150| 02 64 00 00 00 00 00 39 | 00 00 00 00 00 00 00 00 |.d.....9|........|
|00000160| 00 39 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |.9......|........|
|00000170| 00 00 01 01 02 64 00 00 | 00 48 00 48 00 01 00 18 |.....d..|.H.H....|
|00000180| 03 18 02 64 00 00 00 00 | 02 da 02 2f 00 64 00 04 |...d....|.../.d..|
|00000190| 32 00 04 00 0f 2a 04 39 | 02 37 01 8f 00 0e 04 00 |2....*.9|.7......|
|000001a0| 0f 2a 04 40 02 37 01 93 | 00 0e fc 73 00 00 03 49 |.*.@.7..|...s...I|
|000001b0| 00 00 00 00 00 ff 00 00 | 00 00 00 00 13 c5 00 00 |........|........|
|000001c0| 13 c5 00 00 13 c5 00 00 | 62 5b 00 00 00 00 00 00 |........|b[......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 06 00 08 |........|........|
|00000210| 00 00 00 00 00 0c 04 00 | 02 00 00 38 04 00 02 06 |........|...8....|
|00000220| 00 38 00 00 00 78 00 03 | 00 00 00 48 00 48 00 00 |.8...x..|...H.H..|
|00000230| 00 00 02 da 02 2f 00 00 | 00 00 03 18 02 64 01 5b |...../..|.....d.[|
|00000240| 05 28 03 fc 00 02 00 00 | 00 48 00 48 00 00 00 00 |.(......|.H.H....|
|00000250| 03 18 02 64 00 01 00 00 | 00 64 00 00 00 01 00 01 |...d....|.d......|
|00000260| 01 01 00 00 00 01 27 0f | 00 01 00 01 00 00 00 00 |......'.|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 02 00 19 01 90 00 00 |........|........|
|00000280| 00 00 00 40 00 00 00 00 | 00 00 00 00 00 00 00 00 |...@....|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 14 |........|........|
|000002a0| fc 00 48 02 1c 00 48 00 | 0e 01 68 06 30 f7 ff 00 |..H...H.|..h.0...|
|000002b0| 14 0e 01 f7 33 44 4b 49 | 54 ff 00 15 0c 00 f7 0d |....3DKI|T.......|
|000002c0| ff 00 15 0e 00 f7 41 20 | 73 65 74 20 6f 66 20 6f |......A |set of o|
|000002d0| 62 6a 65 63 74 73 20 66 | 6f 72 20 64 69 73 70 6c |bjects f|or displ|
|000002e0| 61 79 69 6e 67 20 77 69 | 72 65 66 72 61 6d 65 20 |aying wi|reframe |
|000002f0| 33 44 20 67 72 61 70 68 | 69 63 73 2e ff 00 15 0c |3D graph|ics.....|
|00000300| 00 f7 0d ff 00 14 0c 02 | f7 44 61 6e 69 65 6c 20 |........|.Daniel |
|00000310| 4d 61 72 6b 20 47 65 73 | 73 65 6c 0d 35 20 52 6f |Mark Ges|sel.5 Ro|
|00000320| 79 6c 65 6e 63 72 6f 66 | 74 20 4c 6e 2e 0d 52 6f |ylencrof|t Ln..Ro|
|00000330| 73 65 20 56 61 6c 6c 65 | 79 2c 20 50 41 20 31 39 |se Valle|y, PA 19|
|00000340| 30 36 35 0d 67 65 73 73 | 65 6c 40 63 73 2e 73 77 |065.gess|el@cs.sw|
|00000350| 61 72 74 68 6d 6f 72 65 | 2e 65 64 75 20 75 6e 74 |arthmore|.edu unt|
|00000360| 69 6c 6c 20 53 65 70 74 | 2e 20 31 39 39 30 0d 0d |ill Sept|. 1990..|
|00000370| ff 00 14 0e 03 f7 49 6e | 74 72 6f 64 75 63 74 69 |......In|troducti|
|00000380| 6f 6e ff 00 14 0c 03 f7 | 0d fc 00 5a 02 0a 00 5a |on......|...Z...Z|
|00000390| 00 0e 01 b0 06 30 f7 0d | fc 00 48 02 1c 00 5a 01 |.....0..|..H...Z.|
|000003a0| 0e 01 b0 06 30 f7 ff 00 | 14 0c 00 f7 f9 00 f7 49 |....0...|.......I|
|000003b0| 20 68 61 76 65 20 73 65 | 74 20 6f 75 74 20 74 6f | have se|t out to|
|000003c0| 20 63 72 65 61 74 65 20 | 61 6e 20 65 78 61 6d 70 | create |an examp|
|000003d0| 6c 65 20 6f 66 20 68 6f | 77 20 74 68 65 20 41 70 |le of ho|w the Ap|
|000003e0| 70 4b 69 74 27 73 20 68 | 69 65 72 61 72 63 68 69 |pKit's h|ierarchi|
|000003f0| 63 61 6c 20 56 69 65 77 | 20 73 74 72 75 63 74 75 |cal View| structu|
|00000400| 72 65 20 63 61 6e 20 62 | 65 20 61 64 61 70 74 65 |re can b|e adapte|
|00000410| 64 20 66 6f 72 20 64 69 | 73 70 6c 61 79 69 6e 67 |d for di|splaying|
|00000420| 20 33 44 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e | 3D info|rmation.|
|00000430| 20 49 20 77 69 6c 6c 20 | 70 72 65 73 65 6e 74 20 | I will |present |
|00000440| 73 6f 6d 65 20 72 65 61 | 73 6f 6e 69 6e 67 20 61 |some rea|soning a|
|00000450| 73 20 74 6f 20 77 68 79 | 20 49 20 68 61 76 65 20 |s to why| I have |
|00000460| 64 6f 6e 65 20 74 68 69 | 6e 67 73 20 74 68 65 20 |done thi|ngs the |
|00000470| 77 61 79 20 49 20 68 61 | 76 65 2e 20 59 6f 75 20 |way I ha|ve. You |
|00000480| 77 69 6c 6c 20 66 69 6e | 64 20 74 68 65 20 63 6f |will fin|d the co|
|00000490| 64 65 20 66 6f 72 20 74 | 68 65 20 63 6c 61 73 73 |de for t|he class|
|000004a0| 65 73 20 49 20 68 61 76 | 65 20 63 72 65 61 74 65 |es I hav|e create|
|000004b0| 64 20 62 65 6c 6f 77 2e | 20 49 74 20 77 69 6c 6c |d below.| It will|
|000004c0| 20 62 65 20 73 75 62 6d | 69 74 74 65 64 2c 20 61 | be subm|itted, a|
|000004d0| 6c 6f 6e 67 20 77 69 74 | 68 20 61 20 63 6f 70 79 |long wit|h a copy|
|000004e0| 20 6f 66 20 74 68 69 73 | 20 61 72 74 69 63 6c 65 | of this| article|
|000004f0| 2c 20 61 6e 64 20 61 6e | 20 65 78 61 6d 70 6c 65 |, and an| example|
|00000500| 20 70 72 6f 67 72 61 6d | 20 63 72 65 61 74 65 64 | program| created|
|00000510| 20 74 68 72 6f 75 67 68 | 20 49 6e 74 65 72 66 61 | through| Interfa|
|00000520| 63 65 20 42 75 69 6c 64 | 65 72 2c 20 74 6f 20 76 |ce Build|er, to v|
|00000530| 61 72 69 6f 75 73 20 66 | 74 70 20 73 69 74 65 73 |arious f|tp sites|
|00000540| 2e 0d 50 6c 65 61 73 65 | 20 66 65 65 6c 20 66 72 |..Please| feel fr|
|00000550| 65 65 20 74 6f 20 63 6f | 6e 74 61 63 74 20 6d 65 |ee to co|ntact me|
|00000560| 20 61 74 20 74 68 65 20 | 61 62 6f 76 65 20 61 64 | at the |above ad|
|00000570| 64 72 65 73 73 65 73 20 | 61 62 6f 75 74 20 73 75 |dresses |about su|
|00000580| 67 67 65 73 74 69 6f 6e | 73 20 66 6f 72 20 61 64 |ggestion|s for ad|
|00000590| 64 69 74 69 6f 6e 73 2c | 20 6d 6f 64 69 66 69 63 |ditions,| modific|
|000005a0| 61 74 69 6f 6e 73 2c 20 | 73 75 63 63 65 73 73 65 |ations, |successe|
|000005b0| 73 20 61 6e 64 20 66 61 | 69 6c 75 72 65 73 20 79 |s and fa|ilures y|
|000005c0| 6f 75 20 68 61 76 65 20 | 68 61 64 20 77 69 74 68 |ou have |had with|
|000005d0| 20 74 68 69 73 20 6b 69 | 74 2e 20 49 20 77 69 6c | this ki|t. I wil|
|000005e0| 6c 20 73 75 62 6d 69 74 | 20 74 68 69 73 20 63 6f |l submit| this co|
|000005f0| 64 65 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 61 6e |de along| with an|
|00000600| 20 65 78 61 6d 70 6c 65 | 20 63 72 65 61 74 65 64 | example| created|
|00000610| 20 69 6e 20 49 6e 74 65 | 72 66 61 63 65 20 42 75 | in Inte|rface Bu|
|00000620| 69 6c 64 65 72 20 74 6f | 20 76 61 72 69 6f 75 73 |ilder to| various|
|00000630| 20 61 72 63 68 69 76 65 | 20 73 69 74 65 73 2e 20 | archive| sites. |
|00000640| 49 66 20 69 6e 74 65 72 | 65 73 74 20 77 61 72 72 |If inter|est warr|
|00000650| 61 6e 74 73 2c 20 49 20 | 77 69 6c 6c 20 6b 65 65 |ants, I |will kee|
|00000660| 70 20 74 68 65 20 6b 69 | 74 20 75 70 20 74 6f 20 |p the ki|t up to |
|00000670| 64 61 74 65 20 77 69 74 | 68 20 73 75 67 67 65 73 |date wit|h sugges|
|00000680| 74 69 6f 6e 73 20 61 6e | 64 20 6d 6f 64 69 66 69 |tions an|d modifi|
|00000690| 63 61 74 69 6f 6e 73 2c | 20 74 6f 20 74 68 65 20 |cations,| to the |
|000006a0| 62 65 73 74 20 6f 66 20 | 6d 79 20 61 62 69 6c 69 |best of |my abili|
|000006b0| 74 79 2e 0d 03 2d 0d fc | 00 48 02 1c 00 48 00 0e |ty...-..|.H...H..|
|000006c0| 01 68 06 30 f7 ff 00 14 | 0e 03 f7 43 6f 72 65 20 |.h.0....|...Core |
|000006d0| 53 74 72 75 63 74 75 72 | 65 ff 00 14 0c 03 f7 0d |Structur|e.......|
|000006e0| fc 00 5a 02 0a 00 5a 00 | 0e 01 b0 06 30 f7 0d fc |..Z...Z.|....0...|
|000006f0| 00 48 02 1c 00 5a 01 0e | 01 b0 06 30 f7 ff 00 14 |.H...Z..|...0....|
|00000700| 0c 00 f7 f9 00 f7 54 68 | 65 20 66 69 6c 65 20 33 |......Th|e file 3|
|00000710| 44 2e 68 20 64 65 63 6c | 61 72 65 73 20 74 68 65 |D.h decl|ares the|
|00000720| 20 74 79 70 65 20 76 65 | 63 74 6f 72 33 44 2e 20 | type ve|ctor3D. |
|00000730| 49 74 20 69 73 20 75 73 | 65 64 20 74 68 72 6f 75 |It is us|ed throu|
|00000740| 67 68 6f 75 74 20 74 68 | 65 20 6b 69 74 20 61 73 |ghout th|e kit as|
|00000750| 20 61 20 70 72 69 6d 69 | 74 69 76 65 20 74 79 70 | a primi|tive typ|
|00000760| 65 2e 0d 0d 54 68 65 72 | 65 20 61 72 65 20 74 68 |e...Ther|e are th|
|00000770| 72 65 65 20 63 6f 72 65 | 20 6f 62 6a 65 63 74 73 |ree core| objects|
|00000780| 20 66 6f 72 20 74 68 69 | 73 20 6b 69 74 2c 20 49 | for thi|s kit, I|
|00000790| 20 77 69 6c 6c 20 64 65 | 73 63 72 69 62 65 20 74 | will de|scribe t|
|000007a0| 68 65 20 70 75 72 70 6f | 73 65 20 6f 66 20 65 61 |he purpo|se of ea|
|000007b0| 63 68 20 69 6e 20 74 75 | 72 6e 2e 0d fc 00 5a 02 |ch in tu|rn....Z.|
|000007c0| 0a 00 5a 00 0e 01 b0 06 | 30 f7 0d fc 00 48 02 0a |..Z.....|0....H..|
|000007d0| 00 48 00 0e 01 b0 06 30 | f7 43 6f 6e 74 65 78 74 |.H.....0|.Context|
|000007e0| 33 44 0d fc 00 48 02 1c | 00 5a 01 0e 01 b0 06 30 |3D...H..|.Z.....0|
|000007f0| f7 09 0d 54 68 69 73 20 | 69 73 20 61 20 73 75 62 |...This |is a sub|
|00000800| 63 6c 61 73 73 20 6f 66 | 20 56 69 65 77 2e 20 49 |class of| View. I|
|00000810| 74 20 68 6f 6c 64 73 20 | 75 6e 69 71 75 65 20 69 |t holds |unique i|
|00000820| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 68 61 74 20 |nformati|on that |
|00000830| 69 73 20 76 69 74 61 6c | 20 66 6f 72 20 74 68 65 |is vital| for the|
|00000840| 20 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 6f 66 | present|ation of|
|00000850| 20 33 44 20 67 72 61 70 | 68 69 63 73 20 6f 6e 20 | 3D grap|hics on |
|00000860| 73 63 72 65 65 6e 2e 20 | 49 6e 20 74 68 69 73 20 |screen. |In this |
|00000870| 73 69 6d 70 6c 65 20 63 | 61 73 65 2c 20 69 74 20 |simple c|ase, it |
|00000880| 68 6f 6c 64 73 20 74 68 | 65 20 64 69 73 74 61 6e |holds th|e distan|
|00000890| 63 65 20 66 72 6f 6d 20 | 74 68 65 20 65 79 65 20 |ce from |the eye |
|000008a0| 74 6f 20 74 68 65 20 70 | 69 63 74 75 72 65 20 70 |to the p|icture p|
|000008b0| 6c 61 6e 65 20 77 68 69 | 63 68 20 74 68 65 20 73 |lane whi|ch the s|
|000008c0| 63 72 65 65 6e 20 72 65 | 70 72 65 73 65 6e 74 73 |creen re|presents|
|000008d0| 20 69 6e 20 74 68 65 20 | 69 6e 73 74 61 6e 63 65 | in the |instance|
|000008e0| 20 76 61 72 69 61 62 6c | 65 20 ff 00 14 0c 02 f7 | variabl|e ......|
|000008f0| 70 69 63 74 75 72 65 44 | 69 73 74 61 6e 63 65 ff |pictureD|istance.|
|00000900| 00 14 0c 00 f7 2e 20 54 | 68 65 20 63 6f 6e 76 65 |...... T|he conve|
|00000910| 72 73 69 6f 6e 20 6f 66 | 20 33 44 20 63 6f 6f 72 |rsion of| 3D coor|
|00000920| 64 69 6e 61 74 65 73 20 | 74 6f 20 32 44 20 63 6f |dinates |to 2D co|
|00000930| 6f 72 64 69 6e 61 74 65 | 73 20 69 73 20 64 65 70 |ordinate|s is dep|
|00000940| 65 6e 64 65 6e 74 20 6f | 6e 20 74 68 69 73 20 64 |endent o|n this d|
|00000950| 69 73 74 61 6e 63 65 2e | 20 49 74 20 61 6c 73 6f |istance.| It also|
|00000960| 20 68 6f 6c 64 73 20 64 | 69 73 74 61 6e 63 65 20 | holds d|istance |
|00000970| 74 6f 20 61 20 5a 20 63 | 6c 69 70 70 69 6e 67 20 |to a Z c|lipping |
|00000980| 70 6c 61 6e 65 2e 20 41 | 6e 79 20 64 72 61 77 69 |plane. A|ny drawi|
|00000990| 6e 67 20 74 68 61 74 20 | 77 6f 75 6c 64 20 62 65 |ng that |would be|
|000009a0| 20 63 6c 6f 73 65 72 20 | 74 6f 20 74 68 65 20 65 | closer |to the e|
|000009b0| 79 65 20 74 68 61 6e 20 | ff 00 14 0c 02 f7 63 6c |ye than |......cl|
|000009c0| 69 70 70 69 6e 67 44 69 | 73 74 61 6e 63 65 ff 00 |ippingDi|stance..|
|000009d0| 14 0c 00 f7 20 69 73 20 | 6e 6f 74 20 64 72 61 77 |.... is |not draw|
|000009e0| 6e 2e 0d 01 7c fc 00 5a | 02 0a 00 5a 00 0e 01 b0 |n...|..Z|...Z....|
|000009f0| 06 30 f7 0d fc 00 48 02 | 0a 00 48 00 0e 01 b0 06 |.0....H.|..H.....|
|00000a00| 30 f7 56 69 65 77 33 44 | 0d fc 00 48 02 1c 00 5a |0.View3D|...H...Z|
|00000a10| 01 0e 01 b0 06 30 f7 0d | 54 68 69 73 20 69 73 20 |.....0..|This is |
|00000a20| 61 20 73 75 62 63 6c 61 | 73 73 20 6f 66 20 6f 62 |a subcla|ss of ob|
|00000a30| 6a 65 63 74 2e 20 49 74 | 20 69 73 20 6e 6f 74 20 |ject. It| is not |
|00000a40| 61 20 72 65 73 70 6f 6e | 64 65 72 2c 20 73 69 6e |a respon|der, sin|
|00000a50| 63 65 20 74 68 69 73 20 | 33 44 20 4b 69 74 20 61 |ce this |3D Kit a|
|00000a60| 73 73 75 6d 65 73 20 74 | 68 61 74 20 74 68 65 20 |ssumes t|hat the |
|00000a70| 33 44 20 6f 62 6a 65 63 | 74 73 20 64 72 61 77 6e |3D objec|ts drawn|
|00000a80| 20 62 79 20 74 68 69 73 | 20 6b 69 74 20 61 72 65 | by this| kit are|
|00000a90| 20 70 75 72 65 6c 79 20 | 67 72 61 70 68 69 63 61 | purely |graphica|
|00000aa0| 6c 2e 20 54 68 69 73 20 | 69 73 20 6e 6f 74 20 6e |l. This |is not n|
|00000ab0| 65 63 65 73 73 61 72 69 | 6c 6c 79 20 68 6f 77 20 |ecessari|lly how |
|00000ac0| 77 65 20 77 6f 75 6c 64 | 20 6c 69 6b 65 20 69 74 |we would| like it|
|00000ad0| 20 74 6f 20 62 65 2c 20 | 62 75 74 2c 20 62 65 63 | to be, |but, bec|
|00000ae0| 61 75 73 65 20 74 68 69 | 73 20 6b 69 74 20 69 73 |ause thi|s kit is|
|00000af0| 20 73 6c 6f 77 2c 20 61 | 6e 64 20 6f 6e 6c 79 20 | slow, a|nd only |
|00000b00| 69 6d 70 6c 65 6d 65 6e | 74 73 20 64 72 61 77 69 |implemen|ts drawi|
|00000b10| 6e 67 20 72 6f 75 74 69 | 6e 65 73 20 66 6f 72 20 |ng routi|nes for |
|00000b20| 77 69 72 65 66 72 61 6d | 65 20 69 6d 61 67 65 73 |wirefram|e images|
|00000b30| 2c 20 6d 61 6b 69 6e 67 | 20 61 20 52 65 73 70 6f |, making| a Respo|
|00000b40| 6e 64 65 72 33 44 20 63 | 6c 61 73 73 20 73 65 65 |nder3D c|lass see|
|00000b50| 6d 65 64 20 75 6e 6e 65 | 63 65 73 73 61 72 79 2e |med unne|cessary.|
|00000b60| 0d 03 ad fc 00 5a 02 0a | 00 5a 00 0e 01 b0 06 30 |.....Z..|.Z.....0|
|00000b70| f7 0d fc 00 48 02 0a 00 | 48 00 0e 01 b0 06 30 f7 |....H...|H.....0.|
|00000b80| 54 72 61 6e 73 66 6f 72 | 6d 61 74 69 6f 6e 33 44 |Transfor|mation3D|
|00000b90| 0d 0d fc 00 48 02 1c 00 | 5a 01 0e 01 b0 06 30 f7 |....H...|Z.....0.|
|00000ba0| 54 68 69 73 20 69 73 20 | 61 6c 73 6f 20 61 20 73 |This is |also a s|
|00000bb0| 75 62 63 6c 61 73 73 20 | 6f 66 20 6f 62 6a 65 63 |ubclass |of objec|
|00000bc0| 74 2e 20 49 74 20 69 6d | 70 6c 65 6d 65 6e 74 73 |t. It im|plements|
|00000bd0| 20 74 68 65 20 6d 65 74 | 68 6f 64 73 20 ff 00 14 | the met|hods ...|
|00000be0| 0c 01 f7 6f 70 65 72 61 | 74 65 4f 6e 3a ff 00 14 |...opera|teOn:...|
|00000bf0| 0c 00 f7 20 61 6e 64 20 | ff 00 14 0c 01 f7 6f 70 |... and |......op|
|00000c00| 65 72 61 74 65 4f 6e 3a | 68 6f 77 4d 61 6e 79 3a |erateOn:|howMany:|
|00000c10| ff 00 14 0c 00 f7 f9 00 | f7 20 73 75 63 68 20 74 |........|. such t|
|00000c20| 68 61 74 20 74 68 65 79 | 20 64 6f 20 6e 6f 74 68 |hat they| do noth|
|00000c30| 69 6e 67 2e 20 54 68 65 | 20 6d 65 74 68 6f 64 73 |ing. The| methods|
|00000c40| 20 61 72 65 20 74 6f 20 | 62 65 20 6f 76 65 72 77 | are to |be overw|
|00000c50| 72 69 74 74 65 6e 20 28 | 61 73 20 69 6e 20 74 68 |ritten (|as in th|
|00000c60| 65 20 73 75 62 63 6c 61 | 73 73 20 4c 69 6e 65 61 |e subcla|ss Linea|
|00000c70| 72 33 44 29 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |r3D) to |perform |
|00000c80| 74 72 61 6e 73 66 6f 72 | 6d 61 74 69 6f 6e 73 20 |transfor|mations |
|00000c90| 6f 6e 20 76 65 63 74 6f | 72 33 44 73 f9 00 f7 20 |on vecto|r3Ds... |
|00000ca0| 77 68 69 63 68 20 61 72 | 65 20 70 61 73 73 65 64 |which ar|e passed|
|00000cb0| 20 61 73 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f | as argu|ments to|
|00000cc0| 20 74 68 65 73 65 20 6d | 65 74 68 6f 64 73 2e 20 | these m|ethods. |
|00000cd0| 4c 69 6e 65 61 72 33 44 | 20 69 6d 70 6c 65 6d 65 |Linear3D| impleme|
|00000ce0| 6e 74 73 20 6d 61 6e 79 | 20 75 73 65 66 75 6c 20 |nts many| useful |
|00000cf0| 74 72 61 6e 73 66 6f 72 | 6d 61 74 69 6f 6e 73 2c |transfor|mations,|
|00000d00| 20 69 6e 63 6c 75 64 69 | 6e 67 20 72 6f 74 61 74 | includi|ng rotat|
|00000d10| 69 6f 6e 73 2c 20 74 72 | 61 6e 73 6c 61 74 69 6f |ions, tr|anslatio|
|00000d20| 6e 73 20 61 6e 64 20 63 | 6f 6d 62 69 6e 61 74 69 |ns and c|ombinati|
|00000d30| 6f 6e 73 20 6f 66 20 74 | 68 65 73 65 2e 0d 0d ff |ons of t|hese....|
|00000d40| 00 14 0e 03 f7 fc 00 48 | 02 0a 00 48 00 0e 01 b0 |.......H|...H....|
|00000d50| 06 30 f7 43 6f 6d 6d 65 | 6e 74 73 ff 00 14 0c 00 |.0.Comme|nts.....|
|00000d60| f7 0d fc 00 5a 02 0a 00 | 5a 00 0e 01 b0 06 30 f7 |....Z...|Z.....0.|
|00000d70| 0d fc 00 48 02 1c 00 5a | 01 0e 01 b0 06 30 f7 54 |...H...Z|.....0.T|
|00000d80| 68 65 72 65 20 69 73 20 | 74 68 65 20 4c 69 6e 65 |here is |the Line|
|00000d90| 61 72 33 44 20 28 6d 65 | 6e 74 69 6f 6e 65 64 20 |ar3D (me|ntioned |
|00000da0| 61 62 6f 76 65 29 2c 20 | 61 20 54 72 61 6e 73 66 |above), |a Transf|
|00000db0| 6f 72 6d 61 74 69 6f 6e | 33 44 20 73 75 62 63 6c |ormation|3D subcl|
|00000dc0| 61 73 73 2c 20 61 6e 64 | 20 43 75 62 65 2c 20 61 |ass, and| Cube, a|
|00000dd0| 20 56 69 65 77 33 44 20 | 77 68 69 63 68 20 64 72 | View3D |which dr|
|00000de0| 61 77 73 20 61 20 73 69 | 6d 70 6c 65 20 75 6e 69 |aws a si|mple uni|
|00000df0| 74 20 63 75 62 65 20 63 | 65 6e 74 65 72 65 64 20 |t cube c|entered |
|00000e00| 61 74 20 74 68 65 20 6f | 72 69 67 69 6e 2e 20 54 |at the o|rigin. T|
|00000e10| 68 65 20 63 6f 64 65 20 | 69 73 20 63 6f 6d 6d 65 |he code |is comme|
|00000e20| 6e 74 65 64 2c 20 77 69 | 74 68 20 69 6e 73 74 72 |nted, wi|th instr|
|00000e30| 75 63 74 69 6f 6e 73 20 | 6f 6e 20 68 6f 77 20 74 |uctions |on how t|
|00000e40| 6f 20 75 73 65 20 74 68 | 65 20 63 6c 61 73 73 65 |o use th|e classe|
|00000e50| 73 20 69 6e 20 74 68 65 | 20 68 65 61 64 65 72 20 |s in the| header |
|00000e60| 66 69 6c 65 73 2e 0d 54 | 68 65 20 64 72 61 77 69 |files..T|he drawi|
|00000e70| 6e 67 20 61 73 20 69 6d | 70 6c 65 6d 65 6e 74 65 |ng as im|plemente|
|00000e80| 64 20 69 73 20 73 6c 6f | 77 2e 20 54 68 65 72 65 |d is slo|w. There|
|00000e90| 20 69 73 20 6e 6f 20 61 | 74 74 65 6d 70 74 20 61 | is no a|ttempt a|
|00000ea0| 74 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 2c 20 |t optimi|zation, |
|00000eb0| 6a 75 73 74 20 74 6f 20 | 63 72 65 61 74 65 20 61 |just to |create a|
|00000ec0| 20 73 69 6d 70 6c 65 20 | 65 78 61 6d 70 6c 65 20 | simple |example |
|00000ed0| 6f 66 20 6f 62 6a 65 63 | 74 20 6f 72 69 65 6e 74 |of objec|t orient|
|00000ee0| 65 64 20 33 44 20 64 72 | 61 77 69 6e 67 20 69 6e |ed 3D dr|awing in|
|00000ef0| 20 61 20 73 74 79 6c 65 | 20 73 69 6d 69 6c 61 72 | a style| similar|
|00000f00| 20 74 6f 20 74 68 65 20 | 41 70 70 4b 69 74 2e 0d | to the |AppKit..|
|00000f10| 00 18 64 00 02 9e 01 04 | 64 00 06 b4 00 c6 44 00 |..d.....|d.....D.|
|00000f20| 09 e3 00 62 64 00 0b 61 | 00 e4 04 7f 0d fc 00 48 |...bd..a|.......H|
|00000f30| 02 1c 00 48 00 0e 01 68 | 06 30 f7 ff 00 14 0e 03 |...H...h|.0......|
|00000f40| f7 43 6f 72 65 20 53 74 | 72 75 63 74 75 72 65 ff |.Core St|ructure.|
|00000f50| 00 14 0c 03 f7 0d fc 00 | 5a 02 0a 00 5a 00 0e 01 |........|Z...Z...|
|00000f60| b0 06 30 f7 0d fc 00 48 | 02 1c 00 5a 01 0e 01 b0 |..0....H|...Z....|
|00000f70| 06 30 f7 ff 00 14 0c 00 | f7 f9 00 f7 54 68 65 20 |.0......|....The |
|00000f80| 66 69 6c 65 20 33 44 2e | 68 20 64 65 63 6c 61 72 |file 3D.|h declar|
|00000f90| 65 73 20 74 68 65 20 74 | 79 70 65 20 76 65 63 74 |es the t|ype vect|
|00000fa0| 6f 72 33 44 2e 20 49 74 | 20 69 73 20 75 73 65 64 |or3D. It| is used|
|00000fb0| 20 74 68 72 6f 75 67 68 | 6f 75 74 20 74 68 65 20 | through|out the |
|00000fc0| 6b 69 74 20 61 73 20 61 | 20 70 72 69 6d 69 74 69 |kit as a| primiti|
|00000fd0| 76 65 20 74 79 70 65 2e | 0d 0d 54 68 65 72 65 20 |ve type.|..There |
|00000fe0| 61 72 65 20 74 68 72 65 | 65 20 63 6f 72 65 20 6f |are thre|e core o|
|00000ff0| 62 6a 65 63 74 73 20 66 | 6f 72 20 74 68 69 73 20 |bjects f|or this |
|00001000| 6b 69 74 2c 20 49 20 77 | 69 6c 6c 20 64 65 73 63 |kit, I w|ill desc|
|00001010| 72 69 62 65 20 74 68 65 | 20 70 75 72 70 6f 73 65 |ribe the| purpose|
|00001020| 20 6f 66 20 65 61 63 68 | 20 69 6e 20 74 75 72 6e | of each| in turn|
|00001030| 2e 0d fc 00 5a 02 0a 00 | 5a 00 0e 01 b0 06 30 f7 |....Z...|Z.....0.|
|00001040| 0d fc 00 48 02 0a 00 48 | 00 0e 01 b0 06 30 f7 43 |...H...H|.....0.C|
|00001050| 6f 6e 74 65 78 74 33 44 | 0d fc 00 48 02 1c 00 5a |ontext3D|...H...Z|
|00001060| 01 0e 01 b0 06 30 f7 09 | 0d 54 68 69 73 20 69 73 |.....0..|.This is|
|00001070| 20 61 20 73 75 62 63 6c | 61 73 73 20 6f 66 20 56 | a subcl|ass of V|
|00001080| 69 65 77 2e 20 49 74 20 | 68 6f 6c 64 73 20 75 6e |iew. It |holds un|
|00001090| 69 71 75 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ique inf|ormation|
|000010a0| 20 74 68 61 74 20 69 73 | 20 76 69 74 61 6c 20 66 | that is| vital f|
|000010b0| 6f 72 20 74 68 65 20 70 | 72 65 73 65 6e 74 61 74 |or the p|resentat|
|000010c0| 69 6f 6e 20 6f 66 20 33 | 44 20 67 72 61 70 68 69 |ion of 3|D graphi|
|000010d0| 63 73 20 6f 6e 20 73 63 | 72 65 65 6e 2e 20 49 6e |cs on sc|reen. In|
|000010e0| 20 74 68 69 73 20 73 69 | 6d 70 6c 65 20 63 61 73 | this si|mple cas|
|000010f0| 65 2c 20 69 74 20 68 6f | 6c 64 73 20 74 68 65 20 |e, it ho|lds the |
|00001100| 64 69 73 74 61 6e 63 65 | 20 66 72 6f 6d 20 74 68 |distance| from th|
|00001110| 65 20 65 79 65 20 74 6f | 20 74 68 65 20 70 69 63 |e eye to| the pic|
|00001120| 74 75 72 65 20 70 6c 61 | 6e 65 20 77 68 69 63 68 |ture pla|ne which|
|00001130| 20 74 68 65 20 73 63 72 | 65 65 6e 20 72 65 70 72 | the scr|een repr|
|00001140| 65 73 65 6e 74 73 20 69 | 6e 20 74 68 65 20 69 6e |esents i|n the in|
|00001150| 73 74 61 6e 63 65 20 76 | 61 72 69 61 62 6c 65 20 |stance v|ariable |
|00001160| ff 00 14 0c 02 f7 70 69 | 63 74 75 72 65 44 69 73 |......pi|ctureDis|
|00001170| 74 61 6e 63 65 ff 00 14 | 0c 00 f7 2e 20 54 68 65 |tance...|.... The|
|00001180| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 6f 66 20 33 | convers|ion of 3|
|00001190| 44 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 74 6f |D coordi|nates to|
|000011a0| 20 32 44 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 | 2D coor|dinates |
|000011b0| 69 73 20 64 65 70 65 6e | 64 65 6e 74 20 6f 6e 20 |is depen|dent on |
|000011c0| 74 68 69 73 20 64 69 73 | 74 61 6e 63 65 2e 20 49 |this dis|tance. I|
|000011d0| 74 20 61 6c 73 6f 20 68 | 6f 6c 64 73 20 64 69 73 |t also h|olds dis|
|000011e0| 74 61 6e 63 65 20 74 6f | 20 61 20 5a 20 63 6c 69 |tance to| a Z cli|
|000011f0| 70 70 69 6e 67 20 70 6c | 61 6e 65 2e 20 41 6e 79 |pping pl|ane. Any|
|00001200| 20 64 72 61 77 69 6e 67 | 20 74 68 61 74 20 77 6f | drawing| that wo|
|00001210| 75 6c 64 20 62 65 20 63 | 6c 6f 73 65 72 20 74 6f |uld be c|loser to|
|00001220| 20 74 68 65 20 65 79 65 | 20 74 68 61 6e 20 ff 00 | the eye| than ..|
|00001230| 14 0c 02 f7 63 6c 69 70 | 70 69 6e 67 44 69 73 74 |....clip|pingDist|
|00001240| 61 6e 63 65 ff 00 14 0c | 00 f7 20 69 73 20 6e 6f |ance....|.. is no|
|00001250| 74 20 64 72 61 77 6e 2e | 0d 54 68 65 20 6e 65 67 |t drawn.|.The neg|
|00001260| 61 74 69 76 65 20 5a 20 | 61 78 69 73 20 69 73 20 |ative Z |axis is |
|00001270| 69 6e 74 6f 20 74 68 65 | 20 73 63 72 65 65 6e 2c |into the| screen,|
|00001280| 20 74 68 65 20 78 20 69 | 73 20 74 6f 20 74 68 65 | the x i|s to the|
|00001290| 20 72 69 67 68 74 2c 20 | 61 6e 64 20 74 68 65 20 | right, |and the |
|000012a0| 79 20 69 73 20 75 70 77 | 61 72 64 2e 20 54 68 69 |y is upw|ard. Thi|
|000012b0| 73 20 6d 61 6b 65 73 20 | 74 68 65 20 73 79 73 74 |s makes |the syst|
|000012c0| 65 6d 20 72 69 67 68 74 | 20 68 61 6e 64 65 64 2e |em right| handed.|
|000012d0| 20 54 68 65 20 63 6c 69 | 70 70 69 6e 67 20 61 6e | The cli|pping an|
|000012e0| 64 20 70 69 63 74 75 72 | 65 20 70 6c 61 6e 65 73 |d pictur|e planes|
|000012f0| 20 61 72 65 20 72 65 70 | 72 65 73 65 6e 74 65 64 | are rep|resented|
|00001300| 20 61 73 20 64 69 73 74 | 61 6e 63 65 73 2c 20 68 | as dist|ances, h|
|00001310| 6f 77 65 76 65 72 2e 20 | 54 68 69 73 20 6d 65 61 |owever. |This mea|
|00001320| 6e 73 20 74 68 61 74 20 | 74 68 65 20 70 69 63 74 |ns that |the pict|
|00001330| 75 72 65 20 70 6c 61 6e | 65 27 73 20 68 61 73 20 |ure plan|e's has |
|00001340| 61 6e 20 69 6d 70 6c 69 | 63 69 74 20 64 65 73 63 |an impli|cit desc|
|00001350| 72 69 70 74 69 6f 6e 20 | 61 73 20 30 3d 2d ff 00 |ription |as 0=-..|
|00001360| 14 0c 02 f7 7a ff 00 14 | 0c 00 f7 2d ff 00 14 0c |....z...|...-....|
|00001370| 02 f7 70 69 63 74 75 72 | 65 44 69 73 74 61 6e 63 |..pictur|eDistanc|
|00001380| 65 ff 00 14 0c 00 f7 2c | 20 73 69 6d 61 6c 61 72 |e......,| simalar|
|00001390| 6c 79 20 66 6f 72 20 74 | 68 65 20 63 6c 69 70 70 |ly for t|he clipp|
|000013a0| 69 6e 67 20 70 6c 61 6e | 65 2e 0d 00 18 64 00 02 |ing plan|e....d..|
|000013b0| 9e 01 04 64 00 0f 2a 00 | fe 44 00 09 e3 00 62 64 |...d..*.|.D....bd|
|000013c0| 00 0b 61 00 e4 02 54 fc | 00 48 02 1c 00 48 00 0e |..a...T.|.H...H..|
|000013d0| 01 68 06 30 f7 ff 00 14 | 0e 01 f7 33 44 4b 49 54 |.h.0....|...3DKIT|
|000013e0| ff 00 15 0c 00 f7 0d ff | 00 15 0e 00 f7 41 20 73 |........|.....A s|
|000013f0| 65 74 20 6f 66 20 6f 62 | 6a 65 63 74 73 20 66 6f |et of ob|jects fo|
|00001400| 72 20 64 69 73 70 6c 61 | 79 69 6e 67 20 77 69 72 |r displa|ying wir|
|00001410| 65 66 72 61 6d 65 20 33 | 44 20 67 72 61 70 68 69 |eframe 3|D graphi|
|00001420| 63 73 2e ff 00 15 0c 00 | f7 0d ff 00 14 0c 02 f7 |cs......|........|
|00001430| 44 61 6e 69 65 6c 20 4d | 61 72 6b 20 47 65 73 73 |Daniel M|ark Gess|
|00001440| 65 6c 0d 35 20 52 6f 79 | 6c 65 6e 63 72 6f 66 74 |el.5 Roy|lencroft|
|00001450| 20 4c 6e 2e 0d 52 6f 73 | 65 20 56 61 6c 6c 65 79 | Ln..Ros|e Valley|
|00001460| 2c 20 50 41 20 31 39 30 | 36 35 0d 67 65 73 73 65 |, PA 190|65.gesse|
|00001470| 6c 40 63 73 2e 73 77 61 | 72 74 68 6d 6f 72 65 2e |l@cs.swa|rthmore.|
|00001480| 65 64 75 20 75 6e 74 69 | 6c 6c 20 53 65 70 74 2e |edu unti|ll Sept.|
|00001490| 20 31 39 39 30 0d 0d ff | 00 14 0e 03 f7 49 6e 74 | 1990...|.....Int|
|000014a0| 72 6f 64 75 63 74 69 6f | 6e ff 00 14 0c 03 f7 0d |roductio|n.......|
|000014b0| fc 00 5a 02 0a 00 5a 00 | 0e 01 68 06 30 f7 0d fc |..Z...Z.|..h.0...|
|000014c0| 00 48 02 1c 00 5a 01 0e | 01 68 06 30 f7 ff 00 14 |.H...Z..|.h.0....|
|000014d0| 0c 00 f7 f9 00 f7 49 20 | 68 61 76 65 20 73 65 74 |......I |have set|
|000014e0| 20 6f 75 74 20 74 6f 20 | 63 72 65 61 74 65 20 61 | out to |create a|
|000014f0| 6e 20 65 78 61 6d 70 6c | 65 20 6f 66 20 68 6f 77 |n exampl|e of how|
|00001500| 20 74 68 65 20 41 70 70 | 4b 69 74 27 73 20 68 69 | the App|Kit's hi|
|00001510| 65 72 61 72 63 68 69 63 | 61 6c 20 56 69 65 77 20 |erarchic|al View |
|00001520| 73 74 72 75 63 74 75 72 | 65 20 63 61 6e 20 62 65 |structur|e can be|
|00001530| 20 61 64 61 70 74 65 64 | 20 66 6f 72 20 64 69 73 | adapted| for dis|
|00001540| 70 6c 61 79 69 6e 67 20 | 33 44 20 67 72 61 70 68 |playing |3D graph|
|00001550| 69 63 73 2e 20 59 6f 75 | 20 77 69 6c 6c 20 66 69 |ics. You| will fi|
|00001560| 6e 64 20 74 68 65 20 63 | 6f 64 65 20 66 6f 72 20 |nd the c|ode for |
|00001570| 74 68 65 20 63 6c 61 73 | 73 65 73 20 49 20 68 61 |the clas|ses I ha|
|00001580| 76 65 20 63 72 65 61 74 | 65 64 20 62 65 6c 6f 77 |ve creat|ed below|
|00001590| 2e 20 49 74 20 77 69 6c | 6c 20 62 65 20 73 75 62 |. It wil|l be sub|
|000015a0| 6d 69 74 74 65 64 2c 20 | 61 6c 6f 6e 67 20 77 69 |mitted, |along wi|
|000015b0| 74 68 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 69 |th a cop|y of thi|
|000015c0| 73 20 61 72 74 69 63 6c | 65 2c 20 61 6e 64 20 61 |s articl|e, and a|
|000015d0| 6e 20 65 78 61 6d 70 6c | 65 20 70 72 6f 67 72 61 |n exampl|e progra|
|000015e0| 6d 20 63 72 65 61 74 65 | 64 20 74 68 72 6f 75 67 |m create|d throug|
|000015f0| 68 20 49 6e 74 65 72 66 | 61 63 65 20 42 75 69 6c |h Interf|ace Buil|
|00001600| 64 65 72 2c 20 74 6f 20 | 76 61 72 69 6f 75 73 20 |der, to |various |
|00001610| 66 74 70 20 73 69 74 65 | 73 2e 0d 01 9e 50 6c 65 |ftp site|s....Ple|
|00001620| 61 73 65 20 66 65 65 6c | 20 66 72 65 65 20 74 6f |ase feel| free to|
|00001630| 20 63 6f 6e 74 61 63 74 | 20 6d 65 20 61 74 20 74 | contact| me at t|
|00001640| 68 65 20 61 62 6f 76 65 | 20 61 64 64 72 65 73 73 |he above| address|
|00001650| 65 73 20 61 62 6f 75 74 | 20 73 75 67 67 65 73 74 |es about| suggest|
|00001660| 69 6f 6e 73 20 66 6f 72 | 20 61 64 64 69 74 69 6f |ions for| additio|
|00001670| 6e 73 2c 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |ns, modi|fication|
|00001680| 73 2c 20 73 75 63 63 65 | 73 73 65 73 20 61 6e 64 |s, succe|sses and|
|00001690| 20 66 61 69 6c 75 72 65 | 73 20 79 6f 75 20 68 61 | failure|s you ha|
|000016a0| 76 65 20 68 61 64 20 77 | 69 74 68 20 74 68 69 73 |ve had w|ith this|
|000016b0| 20 6b 69 74 2c 20 61 73 | 20 77 65 6c 6c 20 61 73 | kit, as| well as|
|000016c0| 20 61 6e 79 20 62 75 67 | 73 20 74 68 61 74 20 6d | any bug|s that m|
|000016d0| 61 79 20 68 61 76 65 20 | 63 72 65 70 74 20 69 6e |ay have |crept in|
|000016e0| 2e 20 49 20 77 69 6c 6c | 20 73 75 62 6d 69 74 20 |. I will| submit |
|000016f0| 74 68 69 73 20 63 6f 64 | 65 20 61 6c 6f 6e 67 20 |this cod|e along |
|00001700| 77 69 74 68 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 |with an |example |
|00001710| 63 72 65 61 74 65 64 20 | 69 6e 20 49 6e 74 65 72 |created |in Inter|
|00001720| 66 61 63 65 20 42 75 69 | 6c 64 65 72 20 74 6f 20 |face Bui|lder to |
|00001730| 76 61 72 69 6f 75 73 20 | 61 72 63 68 69 76 65 20 |various |archive |
|00001740| 73 69 74 65 73 2e 20 49 | 66 20 69 6e 74 65 72 65 |sites. I|f intere|
|00001750| 73 74 20 77 61 72 72 61 | 6e 74 73 2c 20 49 20 77 |st warra|nts, I w|
|00001760| 69 6c 6c 20 6b 65 65 70 | 20 74 68 65 20 6b 69 74 |ill keep| the kit|
|00001770| 20 75 70 20 74 6f 20 64 | 61 74 65 20 77 69 74 68 | up to d|ate with|
|00001780| 20 73 75 67 67 65 73 74 | 69 6f 6e 73 20 61 6e 64 | suggest|ions and|
|00001790| 20 6d 6f 64 69 66 69 63 | 61 74 69 6f 6e 73 2c 20 | modific|ations, |
|000017a0| 74 6f 20 74 68 65 20 62 | 65 73 74 20 6f 66 20 6d |to the b|est of m|
|000017b0| 79 20 61 62 69 6c 69 74 | 79 2e 0d 03 23 0d fc 00 |y abilit|y...#...|
|000017c0| 48 02 1c 00 48 00 0e 01 | 68 06 30 f7 ff 00 14 0e |H...H...|h.0.....|
|000017d0| 03 f7 43 6f 72 65 20 53 | 74 72 75 63 74 75 72 65 |..Core S|tructure|
|000017e0| ff 00 14 0c 03 f7 0d fc | 00 5a 02 0a 00 5a 00 0e |........|.Z...Z..|
|000017f0| 01 68 06 30 f7 0d fc 00 | 48 02 1c 00 5a 01 0e 01 |.h.0....|H...Z...|
|00001800| 68 06 30 f7 ff 00 14 0c | 00 f7 f9 00 f7 54 68 65 |h.0.....|.....The|
|00001810| 20 66 69 6c 65 20 ff 00 | 16 0c 00 f7 33 44 2e 68 | file ..|....3D.h|
|00001820| ff 00 14 0c 00 f7 20 64 | 65 63 6c 61 72 65 73 20 |...... d|eclares |
|00001830| 74 68 65 20 74 79 70 65 | 20 ff 00 16 0c 00 f7 76 |the type| ......v|
|00001840| 65 63 74 6f 72 33 44 ff | 00 14 0c 00 f7 2e 20 49 |ector3D.|...... I|
|00001850| 74 20 69 73 20 75 73 65 | 64 20 74 68 72 6f 75 67 |t is use|d throug|
|00001860| 68 6f 75 74 20 74 68 65 | 20 6b 69 74 20 61 73 20 |hout the| kit as |
|00001870| 61 20 70 72 69 6d 69 74 | 69 76 65 20 74 79 70 65 |a primit|ive type|
|00001880| 2e 0d 0d 54 68 65 72 65 | 20 61 72 65 20 74 68 72 |...There| are thr|
|00001890| 65 65 20 63 6f 72 65 20 | 6f 62 6a 65 63 74 73 20 |ee core |objects |
|000018a0| 66 6f 72 20 74 68 69 73 | 20 6b 69 74 2e 0d fc 00 |for this| kit....|
|000018b0| 5a 02 0a 00 5a 00 0e 01 | 68 06 30 f7 0d fc 00 48 |Z...Z...|h.0....H|
|000018c0| 02 0a 00 48 00 0e 01 68 | 06 30 f7 43 6f 6e 74 65 |...H...h|.0.Conte|
|000018d0| 78 74 33 44 0d fc 00 48 | 02 1c 00 5a 01 0e 01 68 |xt3D...H|...Z...h|
|000018e0| 06 30 f7 09 0d 54 68 69 | 73 20 69 73 20 61 20 73 |.0...Thi|s is a s|
|000018f0| 75 62 63 6c 61 73 73 20 | 6f 66 20 56 69 65 77 2e |ubclass |of View.|
|00001900| 20 49 74 20 68 6f 6c 64 | 73 20 75 6e 69 71 75 65 | It hold|s unique|
|00001910| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 68 61 | informa|tion tha|
|00001920| 74 20 69 73 20 76 69 74 | 61 6c 20 66 6f 72 20 74 |t is vit|al for t|
|00001930| 68 65 20 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 20 |he prese|ntation |
|00001940| 6f 66 20 33 44 20 67 72 | 61 70 68 69 63 73 20 6f |of 3D gr|aphics o|
|00001950| 6e 20 73 63 72 65 65 6e | 2e 20 49 6e 20 74 68 69 |n screen|. In thi|
|00001960| 73 20 73 69 6d 70 6c 65 | 20 63 61 73 65 2c 20 69 |s simple| case, i|
|00001970| 74 20 68 6f 6c 64 73 20 | 74 68 65 20 64 69 73 74 |t holds |the dist|
|00001980| 61 6e 63 65 20 66 72 6f | 6d 20 74 68 65 20 76 69 |ance fro|m the vi|
|00001990| 65 77 65 72 27 73 20 65 | 79 65 20 74 6f 20 74 68 |ewer's e|ye to th|
|000019a0| 65 20 70 69 63 74 75 72 | 65 20 70 6c 61 6e 65 2c |e pictur|e plane,|
|000019b0| 20 77 68 69 63 68 20 74 | 68 65 20 73 63 72 65 65 | which t|he scree|
|000019c0| 6e 20 72 65 70 72 65 73 | 65 6e 74 73 2c 20 69 6e |n repres|ents, in|
|000019d0| 20 74 68 65 20 69 6e 73 | 74 61 6e 63 65 20 76 61 | the ins|tance va|
|000019e0| 72 69 61 62 6c 65 20 ff | 00 16 0c 02 f7 70 69 63 |riable .|.....pic|
|000019f0| 74 75 72 65 44 69 73 74 | 61 6e 63 65 ff 00 14 0c |tureDist|ance....|
|00001a00| 00 f7 2e 20 54 68 65 20 | 63 6f 6e 76 65 72 73 69 |... The |conversi|
|00001a10| 6f 6e 20 6f 66 20 33 44 | 20 63 6f 6f 72 64 69 6e |on of 3D| coordin|
|00001a20| 61 74 65 73 20 74 6f 20 | 32 44 20 63 6f 6f 72 64 |ates to |2D coord|
|00001a30| 69 6e 61 74 65 73 20 69 | 73 20 64 65 70 65 6e 64 |inates i|s depend|
|00001a40| 65 6e 74 20 6f 6e 20 74 | 68 69 73 20 64 69 73 74 |ent on t|his dist|
|00001a50| 61 6e 63 65 2e 20 49 74 | 20 61 6c 73 6f 20 68 6f |ance. It| also ho|
|00001a60| 6c 64 73 20 64 69 73 74 | 61 6e 63 65 20 74 6f 20 |lds dist|ance to |
|00001a70| 61 20 7a 20 63 6c 69 70 | 70 69 6e 67 20 70 6c 61 |a z clip|ping pla|
|00001a80| 6e 65 2e 20 41 6e 79 20 | 64 72 61 77 69 6e 67 20 |ne. Any |drawing |
|00001a90| 74 68 61 74 20 77 6f 75 | 6c 64 20 62 65 20 63 6c |that wou|ld be cl|
|00001aa0| 6f 73 65 72 20 74 6f 20 | 74 68 65 20 65 79 65 20 |oser to |the eye |
|00001ab0| 74 68 61 6e 20 ff 00 14 | 0c 02 f7 63 6c 69 70 70 |than ...|...clipp|
|00001ac0| 69 6e 67 44 69 73 74 61 | 6e 63 65 ff 00 14 0c 00 |ingDista|nce.....|
|00001ad0| f7 20 69 73 20 6e 6f 74 | 20 64 72 61 77 6e 2e 0d |. is not| drawn..|
|00001ae0| 01 69 54 68 65 20 6e 65 | 67 61 74 69 76 65 20 7a |.iThe ne|gative z|
|00001af0| 20 61 78 69 73 20 69 73 | 20 69 6e 74 6f 20 74 68 | axis is| into th|
|00001b00| 65 20 73 63 72 65 65 6e | 2c 20 74 68 65 20 78 20 |e screen|, the x |
|00001b10| 61 78 69 73 20 69 73 20 | 74 6f 77 61 72 64 20 74 |axis is |toward t|
|00001b20| 68 65 20 72 69 67 68 74 | 2c 20 61 6e 64 20 74 68 |he right|, and th|
|00001b30| 65 20 79 20 61 78 69 73 | 20 69 73 20 75 70 77 61 |e y axis| is upwa|
|00001b40| 72 64 2e 20 54 68 69 73 | 20 6d 61 6b 65 73 20 74 |rd. This| makes t|
|00001b50| 68 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 73 79 |he coord|inate sy|
|00001b60| 73 74 65 6d 20 72 69 67 | 68 74 20 68 61 6e 64 65 |stem rig|ht hande|
|00001b70| 64 2e 20 54 68 65 20 63 | 6c 69 70 70 69 6e 67 20 |d. The c|lipping |
|00001b80| 61 6e 64 20 70 69 63 74 | 75 72 65 20 70 6c 61 6e |and pict|ure plan|
|00001b90| 65 73 20 61 72 65 20 72 | 65 70 72 65 73 65 6e 74 |es are r|epresent|
|00001ba0| 65 64 20 61 73 20 64 69 | 73 74 61 6e 63 65 73 2c |ed as di|stances,|
|00001bb0| 20 68 6f 77 65 76 65 72 | 2e 20 54 68 69 73 20 6d | however|. This m|
|00001bc0| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 20 70 69 |eans tha|t the pi|
|00001bd0| 63 74 75 72 65 20 70 6c | 61 6e 65 20 68 61 73 20 |cture pl|ane has |
|00001be0| 74 68 65 20 69 6d 70 6c | 69 63 69 74 20 66 6f 72 |the impl|icit for|
|00001bf0| 6d 75 6c 61 20 30 3d 2d | ff 00 14 0c 02 f7 7a ff |mula 0=-|......z.|
|00001c00| 00 14 0c 00 f7 2d ff 00 | 16 0c 02 f7 70 69 63 74 |.....-..|....pict|
|00001c10| 75 72 65 44 69 73 74 61 | 6e 63 65 ff 00 14 0c 00 |ureDista|nce.....|
|00001c20| f7 2e ff 00 14 0c 00 f7 | 20 53 69 6d 61 6c 61 72 |........| Simalar|
|00001c30| 6c 79 20 66 6f 72 20 74 | 68 65 20 63 6c 69 70 70 |ly for t|he clipp|
|00001c40| 69 6e 67 20 70 6c 61 6e | 65 2e 0d 03 24 fc 00 5a |ing plan|e...$..Z|
|00001c50| 02 0a 00 5a 00 0e 01 68 | 06 30 f7 0d fc 00 48 02 |...Z...h|.0....H.|
|00001c60| 0a 00 48 00 0e 01 68 06 | 30 f7 56 69 65 77 33 44 |..H...h.|0.View3D|
|00001c70| 0d fc 00 48 02 1c 00 5a | 01 0e 01 68 06 30 f7 0d |...H...Z|...h.0..|
|00001c80| 54 68 69 73 20 69 73 20 | 61 20 73 75 62 63 6c 61 |This is |a subcla|
|00001c90| 73 73 20 6f 66 20 6f 62 | 6a 65 63 74 2e 20 49 74 |ss of ob|ject. It|
|00001ca0| 20 69 73 20 6e 6f 74 20 | 61 20 72 65 73 70 6f 6e | is not |a respon|
|00001cb0| 64 65 72 2c 20 73 69 6e | 63 65 20 74 68 69 73 20 |der, sin|ce this |
|00001cc0| 33 44 20 4b 69 74 20 61 | 73 73 75 6d 65 73 20 74 |3D Kit a|ssumes t|
|00001cd0| 68 61 74 20 74 68 65 20 | 33 44 20 6f 62 6a 65 63 |hat the |3D objec|
|00001ce0| 74 73 20 64 72 61 77 6e | 20 62 79 20 74 68 69 73 |ts drawn| by this|
|00001cf0| 20 6b 69 74 20 61 72 65 | 20 70 75 72 65 6c 79 20 | kit are| purely |
|00001d00| 67 72 61 70 68 69 63 61 | 6c 2e 20 54 68 69 73 20 |graphica|l. This |
|00001d10| 69 73 20 6e 6f 74 20 6e | 65 63 65 73 73 61 72 69 |is not n|ecessari|
|00001d20| 6c 6c 79 20 68 6f 77 20 | 77 65 20 77 6f 75 6c 64 |lly how |we would|
|00001d30| 20 6c 69 6b 65 20 69 74 | 20 74 6f 20 62 65 2c 20 | like it| to be, |
|00001d40| 62 75 74 2c 20 62 65 63 | 61 75 73 65 20 74 68 69 |but, bec|ause thi|
|00001d50| 73 20 6b 69 74 20 69 73 | 20 73 6c 6f 77 2c 20 61 |s kit is| slow, a|
|00001d60| 6e 64 20 6f 6e 6c 79 20 | 69 6d 70 6c 65 6d 65 6e |nd only |implemen|
|00001d70| 74 73 20 64 72 61 77 69 | 6e 67 20 72 6f 75 74 69 |ts drawi|ng routi|
|00001d80| 6e 65 73 20 66 6f 72 20 | 77 69 72 65 66 72 61 6d |nes for |wirefram|
|00001d90| 65 20 69 6d 61 67 65 73 | 2c 20 6d 61 6b 69 6e 67 |e images|, making|
|00001da0| 20 61 20 52 65 73 70 6f | 6e 64 65 72 33 44 20 63 | a Respo|nder3D c|
|00001db0| 6c 61 73 73 20 73 65 65 | 6d 65 73 20 75 6e 6e 65 |lass see|mes unne|
|00001dc0| 63 65 73 73 61 72 79 2e | 20 41 6c 6c 20 64 72 61 |cessary.| All dra|
|00001dd0| 77 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 62 79 20 |wing is |done by |
|00001de0| 56 69 65 77 33 44 20 73 | 75 62 63 6c 61 73 73 65 |View3D s|ubclasse|
|00001df0| 73 2c 20 75 73 69 6e 67 | 20 ff 00 16 0c 00 f7 6d |s, using| ......m|
|00001e00| 6f 76 65 74 6f 3a ff 00 | 14 0c 00 f7 2c 20 ff 00 |oveto:..|...., ..|
|00001e10| 16 0c 00 f7 6c 69 6e 65 | 74 6f 3a ff 00 14 0c 00 |....line|to:.....|
|00001e20| f7 20 61 6e 64 20 ff 00 | 16 0c 00 f7 70 6f 6c 79 |. and ..|....poly|
|00001e30| 67 6f 6e 3a 68 6f 77 4d | 61 6e 79 3a ff 00 14 0c |gon:howM|any:....|
|00001e40| 00 f7 20 6d 65 73 73 61 | 67 65 73 20 73 65 6e 74 |.. messa|ges sent|
|00001e50| 20 74 6f 20 ff 00 16 0c | 00 f7 73 65 6c 66 ff 00 | to ....|..self..|
|00001e60| 14 0c 00 f7 20 6f 72 20 | 64 69 72 65 63 74 6c 79 |.... or |directly|
|00001e70| 20 74 6f 20 ff 00 16 0c | 00 f7 73 75 70 65 72 76 | to ....|..superv|
|00001e80| 69 65 77 ff 00 14 0c 00 | f7 2c 20 77 68 65 72 65 |iew.....|., where|
|00001e90| ff 00 16 0c 00 f7 20 73 | 75 70 65 72 76 69 65 77 |...... s|uperview|
|00001ea0| ff 00 14 0c 00 f7 20 68 | 61 73 20 61 20 66 75 6e |...... h|as a fun|
|00001eb0| 63 74 69 6f 6e 20 69 64 | 65 6e 74 69 63 61 6c 20 |ction id|entical |
|00001ec0| 74 6f 20 74 68 65 20 73 | 75 70 65 72 76 69 65 77 |to the s|uperview|
|00001ed0| 20 69 6e 20 74 68 65 20 | 56 69 65 77 20 63 6c 61 | in the |View cla|
|00001ee0| 73 73 2e 20 53 65 6e 64 | 69 6e 67 20 74 68 65 73 |ss. Send|ing thes|
|00001ef0| 65 20 6d 65 73 73 61 67 | 65 73 20 64 69 72 65 63 |e messag|es direc|
|00001f00| 74 6c 79 20 74 6f 20 74 | 68 65 20 ff 00 16 0c 00 |tly to t|he .....|
|00001f10| f7 73 75 70 65 72 76 69 | 65 77 ff 00 14 0c 00 f7 |.supervi|ew......|
|00001f20| 20 77 69 6c 6c 20 61 76 | 6f 69 64 20 74 68 65 20 | will av|oid the |
|00001f30| 56 69 65 77 33 44 27 73 | 20 6f 77 6e 20 74 72 61 |View3D's| own tra|
|00001f40| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 62 6a 65 |nsformat|ion obje|
|00001f50| 63 74 2e 20 54 68 69 73 | 20 6d 61 79 20 62 65 20 |ct. This| may be |
|00001f60| 75 73 65 66 75 6c 20 61 | 74 20 74 69 6d 65 73 2e |useful a|t times.|
|00001f70| 0d 03 37 fc 00 5a 02 0a | 00 5a 00 0e 01 68 06 30 |..7..Z..|.Z...h.0|
|00001f80| f7 0d fc 00 48 02 0a 00 | 48 00 0e 01 68 06 30 f7 |....H...|H...h.0.|
|00001f90| 54 72 61 6e 73 66 6f 72 | 6d 61 74 69 6f 6e 33 44 |Transfor|mation3D|
|00001fa0| 0d 0d fc 00 48 02 1c 00 | 5a 01 0e 01 68 06 30 f7 |....H...|Z...h.0.|
|00001fb0| 54 68 69 73 20 69 73 20 | 61 6c 73 6f 20 61 20 73 |This is |also a s|
|00001fc0| 75 62 63 6c 61 73 73 20 | 6f 66 20 6f 62 6a 65 63 |ubclass |of objec|
|00001fd0| 74 2e 20 49 74 20 69 6d | 70 6c 65 6d 65 6e 74 73 |t. It im|plements|
|00001fe0| 20 74 68 65 20 6d 65 74 | 68 6f 64 73 20 ff 00 16 | the met|hods ...|
|00001ff0| 0c 00 f7 6f 70 65 72 61 | 74 65 4f 6e 3a f9 00 f7 |...opera|teOn:...|
|00002000| ff 00 14 0c 00 f7 20 61 | 6e 64 20 ff 00 16 0c 00 |...... a|nd .....|
|00002010| f7 6f 70 65 72 61 74 65 | 4f 6e 3a 68 6f 77 4d 61 |.operate|On:howMa|
|00002020| 6e 79 3a f9 00 f7 ff 00 | 14 0c 00 f7 20 73 75 63 |ny:.....|.... suc|
|00002030| 68 20 74 68 61 74 20 74 | 68 65 79 20 64 6f 20 6e |h that t|hey do n|
|00002040| 6f 74 68 69 6e 67 2e 20 | 54 68 65 20 6d 65 74 68 |othing. |The meth|
|00002050| 6f 64 73 20 61 72 65 20 | 74 6f 20 62 65 20 6f 76 |ods are |to be ov|
|00002060| 65 72 77 72 69 74 74 65 | 6e 20 28 61 73 20 69 6e |erwritte|n (as in|
|00002070| 20 74 68 65 20 73 75 62 | 63 6c 61 73 73 20 4c 69 | the sub|class Li|
|00002080| 6e 65 61 72 33 44 29 20 | 74 6f 20 70 65 72 66 6f |near3D) |to perfo|
|00002090| 72 6d 20 74 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |rm trans|formatio|
|000020a0| 6e 73 20 6f 6e 20 76 65 | 63 74 6f 72 33 44 73 2c |ns on ve|ctor3Ds,|
|000020b0| 20 70 6f 69 6e 74 65 72 | 73 20 74 6f f9 00 f7 20 | pointer|s to... |
|000020c0| 77 68 69 63 68 20 61 72 | 65 20 70 61 73 73 65 64 |which ar|e passed|
|000020d0| 20 61 73 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f | as argu|ments to|
|000020e0| 20 74 68 65 73 65 20 6d | 65 74 68 6f 64 73 2e 20 | these m|ethods. |
|000020f0| 4c 69 6e 65 61 72 33 44 | 20 69 6d 70 6c 65 6d 65 |Linear3D| impleme|
|00002100| 6e 74 73 20 6d 61 6e 79 | 20 75 73 65 66 75 6c 20 |nts many| useful |
|00002110| 74 72 61 6e 73 66 6f 72 | 6d 61 74 69 6f 6e 73 2c |transfor|mations,|
|00002120| 20 69 6e 63 6c 75 64 69 | 6e 67 20 72 6f 74 61 74 | includi|ng rotat|
|00002130| 69 6f 6e 73 2c 20 74 72 | 61 6e 73 6c 61 74 69 6f |ions, tr|anslatio|
|00002140| 6e 73 20 61 6e 64 20 63 | 6f 6d 62 69 6e 61 74 69 |ns and c|ombinati|
|00002150| 6f 6e 73 20 6f 66 20 74 | 68 65 73 65 2e 20 54 68 |ons of t|hese. Th|
|00002160| 65 72 65 20 69 73 20 61 | 20 ff 00 16 0c 00 f7 74 |ere is a| ......t|
|00002170| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e f9 00 f7 |ransform|ation...|
|00002180| ff 00 14 0c 00 f7 20 69 | 6e 73 74 61 6e 63 65 20 |...... i|nstance |
|00002190| 76 61 72 69 61 62 6c 65 | 20 69 6e 20 74 68 65 20 |variable| in the |
|000021a0| 56 69 65 77 33 44 20 63 | 6c 61 73 73 2e 20 54 68 |View3D c|lass. Th|
|000021b0| 69 73 20 63 61 6e 20 62 | 65 20 61 73 73 69 67 6e |is can b|e assign|
|000021c0| 65 64 20 74 6f 20 61 6e | 20 69 6e 73 74 61 6e 63 |ed to an| instanc|
|000021d0| 65 20 6f 66 20 61 20 73 | 75 62 63 6c 61 73 73 20 |e of a s|ubclass |
|000021e0| 6f 66 20 54 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |of Trans|formatio|
|000021f0| 6e 33 44 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |n3D, whi|ch will |
|00002200| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 62 65 |automati|cally be|
|00002210| 20 73 65 6e 74 ff 00 16 | 0c 00 f7 20 6f 70 65 72 | sent...|... oper|
|00002220| 61 74 65 4f 6e 3a 20 ff | 00 14 0c 00 f7 6d 65 73 |ateOn: .|.....mes|
|00002230| 73 61 67 65 73 20 77 69 | 74 68 20 74 68 65 20 76 |sages wi|th the v|
|00002240| 65 63 74 6f 72 33 44 73 | 20 77 68 69 63 68 20 61 |ector3Ds| which a|
|00002250| 72 65 20 70 61 73 73 65 | 64 20 74 6f 20 74 68 65 |re passe|d to the|
|00002260| 20 64 72 61 77 69 6e 67 | 20 6d 65 73 73 61 67 65 | drawing| message|
|00002270| 73 20 6d 65 6e 74 69 6f | 6e 65 64 20 61 62 6f 76 |s mentio|ned abov|
|00002280| 65 2e f9 00 f7 0d 0d ff | 00 14 0e 03 f7 fc 00 48 |e.......|.......H|
|00002290| 02 0a 00 48 00 0e 01 68 | 06 30 f7 43 6f 6d 6d 65 |...H...h|.0.Comme|
|000022a0| 6e 74 73 ff 00 14 0c 00 | f7 0d 01 e3 fc 00 5a 02 |nts.....|......Z.|
|000022b0| 0a 00 5a 00 0e 01 68 06 | 30 f7 0d fc 00 48 02 1c |..Z...h.|0....H..|
|000022c0| 00 5a 01 0e 01 68 06 30 | f7 54 68 65 72 65 20 69 |.Z...h.0|.There i|
|000022d0| 73 20 74 68 65 20 4c 69 | 6e 65 61 72 33 44 20 28 |s the Li|near3D (|
|000022e0| 6d 65 6e 74 69 6f 6e 65 | 64 20 61 62 6f 76 65 29 |mentione|d above)|
|000022f0| 2c 20 61 20 54 72 61 6e | 73 66 6f 72 6d 61 74 69 |, a Tran|sformati|
|00002300| 6f 6e 33 44 20 73 75 62 | 63 6c 61 73 73 2c 20 61 |on3D sub|class, a|
|00002310| 6e 64 20 43 75 62 65 2c | 20 61 20 56 69 65 77 33 |nd Cube,| a View3|
|00002320| 44 20 77 68 69 63 68 20 | 64 72 61 77 73 20 61 20 |D which |draws a |
|00002330| 73 69 6d 70 6c 65 20 75 | 6e 69 74 20 63 75 62 65 |simple u|nit cube|
|00002340| 20 63 65 6e 74 65 72 65 | 64 20 61 74 20 74 68 65 | centere|d at the|
|00002350| 20 6f 72 69 67 69 6e 2e | 20 54 68 65 20 63 6f 64 | origin.| The cod|
|00002360| 65 20 69 73 20 63 6f 6d | 6d 65 6e 74 65 64 2c 20 |e is com|mented, |
|00002370| 77 69 74 68 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |with ins|truction|
|00002380| 73 20 6f 6e 20 68 6f 77 | 20 74 6f 20 75 73 65 20 |s on how| to use |
|00002390| 74 68 65 20 63 6c 61 73 | 73 65 73 20 69 6e 20 74 |the clas|ses in t|
|000023a0| 68 65 20 69 6e 74 65 72 | 66 61 63 65 20 66 69 6c |he inter|face fil|
|000023b0| 65 73 2e 0d 54 68 65 20 | 64 72 61 77 69 6e 67 20 |es..The |drawing |
|000023c0| 61 73 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 69 |as imple|mented i|
|000023d0| 73 20 73 6c 6f 77 2e 20 | 54 68 65 72 65 20 69 73 |s slow. |There is|
|000023e0| 20 6e 6f 20 61 74 74 65 | 6d 70 74 20 61 74 20 6f | no atte|mpt at o|
|000023f0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 2c 20 6a 75 73 |ptimizat|ion, jus|
|00002400| 74 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 73 69 |t to cre|ate a si|
|00002410| 6d 70 6c 65 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |mple exa|mple of |
|00002420| 6f 62 6a 65 63 74 20 6f | 72 69 65 6e 74 65 64 20 |object o|riented |
|00002430| 33 44 20 64 72 61 77 69 | 6e 67 20 69 6e 20 61 20 |3D drawi|ng in a |
|00002440| 73 74 79 6c 65 20 73 69 | 6d 69 6c 61 72 20 74 6f |style si|milar to|
|00002450| 20 74 68 65 20 41 70 70 | 4b 69 74 2e 0d 0d fc 00 | the App|Kit.....|
|00002460| 48 02 1c 00 48 01 0e 01 | 68 01 b0 01 f0 08 02 40 |H...H...|h......@|
|00002470| 02 88 02 d0 03 18 03 60 | 03 a8 03 f0 00 04 38 04 |.......`|......8.|
|00002480| 80 04 c8 05 10 05 58 05 | a0 05 e8 06 30 f7 0d 00 |......X.|....0...|
|00002490| 2a 64 00 13 c5 00 be 04 | 00 16 1b 00 46 64 00 17 |*d......|....Fd..|
|000024a0| bb 00 d8 25 00 1a e0 00 | 3a 64 00 1c 4b 00 a0 64 |...%....|:d..K..d|
|000024b0| 00 1f 71 00 c0 44 00 22 | aa 00 70 |..q..D."|..p |
+--------+-------------------------+-------------------------+--------+--------+