ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/source.cal
(Generate patch)

Comparing ray/src/cv/source.cal (file contents):
Revision 2.8 by gregl, Fri Jul 25 12:08:06 1997 UTC vs.
Revision 2.10 by greg, Thu Jan 24 23:15:46 2008 UTC

# Line 1 | Line 1
1 < { SCCSid "$SunId$ LBL" }
2 <
1 > { RCSid: $Id$ }
2   {
3          Source distribution coordinates (degrees).
4  
5          Theta is measured from the negative z-axis.
6          Phi is measured from the positive x-axis (0 degrees)
7 <                towards the negative y-axis (90 degrees).
7 >                towards the positive y-axis (90 degrees).
8  
9          srcB_vert and srcB_horiz are angles
10          used in type B photometry.
# Line 40 | Line 39 | lboxcorr(v) = A1 * v / lboxprojection; { local box cor
39   cylcorr(v) = A1 * v / cylprojection;    { cylinder correction }
40  
41   src_theta = Acos(Dz) / DEGREE;                  { 0-180 }
42 < src_phi = mod( Atan2(Dy, -Dx) / DEGREE, 360 );  { 0-360 }
42 > src_phi = mod( Atan2(-Dy, -Dx) / DEGREE, 360 ); { 0-360 }
43                                  { bilateral symmetry }
44   src_phi2 = tri( src_phi, 180 );         { 0-180 }
45                                  { quadrilateral symmetry }
46   src_phi4 = tri( src_phi, 90 );          { 0-90 }
47  
48                                  { Type B photometry coordinates }
49 < srcB_vert = atan( -Dx/Dz ) / DEGREE;
50 < srcB_horiz = Asin(Dy) / DEGREE;
49 > srcB_vert = atan2( -Dx, Dz ) / DEGREE;
50 > srcB_horiz = atan2( Dy, Dz ) / DEGREE;
51                                  { w/ symmetry }
52   srcB_vert2 = abs( srcB_vert );
53   srcB_horiz2 = abs( srcB_horiz );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines