home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / rayshade / doc / guide / transfor.tex < prev   
LaTeX Document  |  1992-02-09  |  1.5 KB

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: transfor.tex

ConfidenceProgramDetectionMatch TypeSupport
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 text default
99% 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 | 20 7b 54 72 61 6e 73 66 |\chapter| {Transf|
|00000010| 6f 72 6d 61 74 69 6f 6e | 73 7d 0d 0a 0d 0a 7b 5c |ormation|s}....{\|
|00000020| 52 61 79 73 68 61 64 65 | 7d 20 73 75 70 70 6f 72 |Rayshade|} suppor|
|00000030| 74 73 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |ts the a|pplicati|
|00000040| 6f 6e 20 6f 66 20 6c 69 | 6e 65 61 72 20 74 72 61 |on of li|near tra|
|00000050| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 73 20 74 6f 20 |nsformat|ions to |
|00000060| 6f 62 6a 65 63 74 73 0d | 0a 61 6e 64 20 74 65 78 |objects.|.and tex|
|00000070| 74 75 72 65 73 2e 20 20 | 49 66 20 6d 6f 72 65 20 |tures. |If more |
|00000080| 74 68 61 6e 20 6f 6e 65 | 20 74 72 61 6e 73 66 6f |than one| transfo|
|00000090| 72 6d 61 74 69 6f 6e 20 | 69 73 20 73 70 65 63 69 |rmation |is speci|
|000000a0| 66 69 65 64 2c 20 74 68 | 65 0d 0a 74 6f 74 61 6c |fied, th|e..total|
|000000b0| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 72 61 6e 73 | resulti|ng trans|
|000000c0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 63 6f 6d |formatio|n is com|
|000000d0| 70 75 74 65 64 20 61 6e | 64 20 61 70 70 6c 69 65 |puted an|d applie|
|000000e0| 64 2e 0d 0a 0d 0a 5c 62 | 65 67 69 6e 7b 64 65 66 |d.....\b|egin{def|
|000000f0| 6b 65 79 7d 7b 74 72 61 | 6e 73 6c 61 74 65 7d 7b |key}{tra|nslate}{|
|00000100| 5c 65 76 65 63 7b 64 65 | 6c 74 61 7d 7d 0d 0a 54 |\evec{de|lta}}..T|
|00000110| 72 61 6e 73 6c 61 74 65 | 20 28 6d 6f 76 65 29 20 |ranslate| (move) |
|00000120| 62 79 20 7b 5c 65 6d 20 | 64 65 6c 74 61 7d 2e 0d |by {\em |delta}..|
|00000130| 0a 5c 65 6e 64 7b 64 65 | 66 6b 65 79 7d 0d 0a 0d |.\end{de|fkey}...|
|00000140| 0a 5c 62 65 67 69 6e 7b | 64 65 66 6b 65 79 7d 7b |.\begin{|defkey}{|
|00000150| 72 6f 74 61 74 65 7d 7b | 5c 65 76 65 63 7b 61 78 |rotate}{|\evec{ax|
|00000160| 69 73 7d 20 24 5c 74 68 | 65 74 61 24 7d 0d 0a 52 |is} $\th|eta$}..R|
|00000170| 6f 74 61 74 65 20 63 6f | 75 6e 74 65 72 2d 63 6c |otate co|unter-cl|
|00000180| 6f 63 6b 77 69 73 65 20 | 61 62 6f 75 74 20 74 68 |ockwise |about th|
|00000190| 65 20 67 69 76 65 6e 20 | 61 78 69 73 20 62 79 20 |e given |axis by |
|000001a0| 24 5c 74 68 65 74 61 24 | 20 64 65 67 72 65 65 73 |$\theta$| degrees|
|000001b0| 2e 0d 0a 5c 65 6e 64 7b | 64 65 66 6b 65 79 7d 0d |...\end{|defkey}.|
|000001c0| 0a 0d 0a 5c 62 65 67 69 | 6e 7b 64 65 66 6b 65 79 |...\begi|n{defkey|
|000001d0| 7d 7b 73 63 61 6c 65 7d | 7b 5c 65 76 65 63 7b 76 |}{scale}|{\evec{v|
|000001e0| 7d 7d 0d 0a 53 63 61 6c | 65 20 62 79 20 7b 5c 65 |}}..Scal|e by {\e|
|000001f0| 6d 20 76 7d 2e 0d 0a 5c | 65 6e 64 7b 64 65 66 6b |m v}...\|end{defk|
|00000200| 65 79 7d 0d 0a 41 6c 6c | 20 74 68 72 65 65 20 73 |ey}..All| three s|
|00000210| 63 61 6c 69 6e 67 20 63 | 6f 6d 70 6f 6e 65 6e 74 |caling c|omponent|
|00000220| 73 20 6d 75 73 74 20 62 | 65 20 6e 6f 6e 2d 7a 65 |s must b|e non-ze|
|00000230| 72 6f 2c 20 65 6c 73 65 | 20 64 65 67 65 6e 65 72 |ro, else| degener|
|00000240| 61 74 65 20 6d 61 74 72 | 69 63 65 73 0d 0a 77 69 |ate matr|ices..wi|
|00000250| 6c 6c 20 72 65 73 75 6c | 74 2e 0d 0a 0d 0a 5c 62 |ll resul|t.....\b|
|00000260| 65 67 69 6e 7b 64 65 66 | 6b 65 79 7d 7b 74 72 61 |egin{def|key}{tra|
|00000270| 6e 73 66 6f 72 6d 7d 7b | 5c 65 76 65 63 7b 72 6f |nsform}{|\evec{ro|
|00000280| 77 31 7d 20 5c 65 76 65 | 63 7b 72 6f 77 32 7d 20 |w1} \eve|c{row2} |
|00000290| 5c 65 76 65 63 7b 72 6f | 77 33 7d 20 5b 5c 65 76 |\evec{ro|w3} [\ev|
|000002a0| 65 63 7b 64 65 6c 74 61 | 7d 5d 7d 0d 0a 41 70 70 |ec{delta|}]}..App|
|000002b0| 6c 79 20 74 68 65 20 67 | 69 76 65 6e 20 33 2d 62 |ly the g|iven 3-b|
|000002c0| 79 2d 33 20 74 72 61 6e | 73 66 6f 72 6d 61 74 69 |y-3 tran|sformati|
|000002d0| 6f 6e 20 6d 61 74 72 69 | 78 2e 20 20 49 66 20 67 |on matri|x. If g|
|000002e0| 69 76 65 6e 2c 20 7b 5c | 65 6d 20 64 65 6c 74 61 |iven, {\|em delta|
|000002f0| 7d 0d 0a 73 70 65 63 69 | 66 69 65 73 20 61 20 74 |}..speci|fies a t|
|00000300| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 76 65 63 74 6f |ranslati|on vecto|
|00000310| 72 2e 0d 0a 5c 65 6e 64 | 7b 64 65 66 6b 65 79 7d |r...\end|{defkey}|
|00000320| 0d 0a 0d 0a 54 72 61 6e | 73 66 6f 72 6d 61 74 69 |....Tran|sformati|
|00000330| 6f 6e 73 20 73 68 6f 75 | 6c 64 0d 0a 62 65 20 73 |ons shou|ld..be s|
|00000340| 70 65 63 69 66 69 65 64 | 20 69 6e 20 74 68 65 20 |pecified| in the |
|00000350| 6f 72 64 65 72 20 69 6e | 20 77 68 69 63 68 20 74 |order in| which t|
|00000360| 68 65 79 20 61 72 65 20 | 74 6f 20 62 65 20 61 70 |hey are |to be ap|
|00000370| 70 6c 69 65 64 0d 0a 69 | 6d 6d 65 64 69 61 74 65 |plied..i|mmediate|
|00000380| 6c 79 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 68 65 |ly follo|wing the|
|00000390| 20 69 74 65 6d 20 74 6f | 0d 0a 62 65 20 74 72 61 | item to|..be tra|
|000003a0| 6e 73 66 6f 72 6d 65 64 | 2e 20 20 46 6f 72 20 65 |nsformed|. For e|
|000003b0| 78 61 6d 70 6c 65 3a 0d | 0a 0d 0a 5c 62 65 67 69 |xample:.|...\begi|
|000003c0| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0d 0a 20 20 20 |n{verbat|im}.. |
|000003d0| 20 20 20 20 20 2f 2a 0d | 0a 20 20 20 20 20 20 20 | /*.|. |
|000003e0| 20 20 2a 20 45 6c 6c 69 | 70 73 6f 69 64 2c 20 72 | * Elli|psoid, r|
|000003f0| 6f 74 61 74 65 64 20 63 | 75 62 65 0d 0a 20 20 20 |otated c|ube.. |
|00000400| 20 20 20 20 20 20 2a 2f | 0d 0a 20 20 20 20 20 20 | */|.. |
|00000410| 20 20 73 70 68 65 72 65 | 20 31 2e 20 30 20 30 20 | sphere| 1. 0 0 |
|00000420| 30 20 20 20 73 63 61 6c | 65 20 32 2e 20 31 2e 20 |0 scal|e 2. 1. |
|00000430| 31 2e 20 74 72 61 6e 73 | 6c 61 74 65 20 30 20 30 |1. trans|late 0 0|
|00000440| 20 2d 32 2e 35 0d 0a 20 | 20 20 20 20 20 20 20 62 | -2.5.. | b|
|00000450| 6f 78 20 30 20 30 20 30 | 20 2e 35 20 2e 35 20 2e |ox 0 0 0| .5 .5 .|
|00000460| 35 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 72 6f |5.. | ro|
|00000470| 74 61 74 65 20 30 20 30 | 20 31 20 34 35 20 72 6f |tate 0 0| 1 45 ro|
|00000480| 74 61 74 65 20 31 20 30 | 20 30 20 34 35 20 74 72 |tate 1 0| 0 45 tr|
|00000490| 61 6e 73 6c 61 74 65 20 | 30 20 30 20 32 2e 35 0d |anslate |0 0 2.5.|
|000004a0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|000004b0| 0a 0d 0a 54 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |...Trans|formatio|
|000004c0| 6e 73 20 6d 61 79 20 61 | 6c 73 6f 20 62 65 20 61 |ns may a|lso be a|
|000004d0| 70 70 6c 69 65 64 20 74 | 6f 20 74 65 78 74 75 72 |pplied t|o textur|
|000004e0| 65 73 3a 0d 0a 0d 0a 5c | 62 65 67 69 6e 7b 76 65 |es:....\|begin{ve|
|000004f0| 72 62 61 74 69 6d 7d 0d | 0a 20 20 20 70 6c 61 6e |rbatim}.|. plan|
|00000500| 65 20 30 20 30 20 2d 34 | 20 20 30 20 30 20 31 0d |e 0 0 -4| 0 0 1.|
|00000510| 0a 20 20 20 20 20 74 65 | 78 74 75 72 65 20 63 68 |. te|xture ch|
|00000520| 65 63 6b 65 72 20 72 65 | 64 20 73 63 61 6c 65 20 |ecker re|d scale |
|00000530| 32 20 32 20 32 20 72 6f | 74 61 74 65 20 30 20 30 |2 2 2 ro|tate 0 0|
|00000540| 20 31 20 34 35 0d 0a 5c | 65 6e 64 7b 76 65 72 62 | 1 45..\|end{verb|
|00000550| 61 74 69 6d 7d 0d 0a 0d | 0a 4e 6f 74 65 20 74 68 |atim}...|.Note th|
|00000560| 61 74 20 74 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |at trans|formatio|
|00000570| 6e 20 70 61 72 61 6d 65 | 74 65 72 73 20 6d 61 79 |n parame|ters may|
|00000580| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 75 73 | be spec|ified us|
|00000590| 69 6e 67 0d 0a 61 6e 69 | 6d 61 74 65 64 20 65 78 |ing..ani|mated ex|
|000005a0| 70 72 65 73 73 69 6f 6e | 73 2c 20 63 61 75 73 69 |pression|s, causi|
|000005b0| 6e 67 20 74 68 65 20 74 | 72 61 6e 73 66 6f 72 6d |ng the t|ransform|
|000005c0| 61 74 69 6f 6e 73 20 74 | 68 65 6d 73 65 6c 76 65 |ations t|hemselve|
|000005d0| 73 0d 0a 74 6f 20 62 65 | 20 61 6e 69 6d 61 74 65 |s..to be| animate|
|000005e0| 64 2e 20 20 53 65 65 20 | 41 70 70 65 6e 64 69 78 |d. See |Appendix|
|000005f0| 20 42 20 66 6f 72 20 66 | 75 72 74 68 65 72 20 64 | B for f|urther d|
|00000600| 65 74 61 69 6c 73 2e 0d | 0a |etails..|. |
+--------+-------------------------+-------------------------+--------+--------+