Revision: | 2.8 |
Committed: | Sat Feb 22 02:07:23 2003 UTC (22 years, 2 months ago) by greg |
Branch: | MAIN |
CVS Tags: | rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad3R7P2, rad3R7P1, rad4R2, rad4R1, rad4R0, rad3R5, rad3R6, rad3R6P1, rad3R8, rad3R9, rad4R2P1, rad5R3, HEAD |
Changes since 2.7: | +1 -2 lines |
Log Message: | Changes and check-in for 3.5 release Includes new source files and modifications not recorded for many years See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release |
# | User | Rev | Content |
---|---|---|---|
1 | greg | 2.8 | { RCSid: $Id$ } |
2 | greg | 1.1 | { |
3 | Coordinate computations for mkillum output. | ||
4 | |||
5 | greg | 2.5 | There are no arguments for the spherical case: |
6 | greg | 1.1 | |
7 | il_alt - Altitude (1 to -1) for spherical coordinates | ||
8 | il_azi - Azimuth (0 to 2*PI) for sphere | ||
9 | |||
10 | greg | 2.5 | For the hemispherical case, A1-A9 are the unit vectors for the |
11 | greg | 1.1 | hemisphere's coordinate system: |
12 | |||
13 | il_alth - Altitude (1 to 0) for hemispherical coordinates | ||
14 | il_azih - Azimuth (0 to 2*PI) for hemisphere | ||
15 | } | ||
16 | |||
17 | gwlarson | 2.7 | norm_rad(r) : if( r, r, r+2*PI ); |
18 | |||
19 | greg | 1.1 | il_alt = Dz; |
20 | greg | 2.6 | il_azi = norm_rad(Atan2(Dy, Dx)); |
21 | greg | 1.1 | |
22 | greg | 2.5 | il_alth = sq(-Dx*A7-Dy*A8-Dz*A9); |
23 | greg | 2.6 | il_azih = norm_rad(Atan2(-Dx*A4-Dy*A5-Dz*A6, -Dx*A1-Dy*A2-Dz*A3)); |