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.2 by greg, Tue Mar 3 15:01:45 1992 UTC vs.
Revision 2.4 by greg, Wed Oct 14 13:21:09 1992 UTC

# Line 19 | Line 19
19          A2,A3,A4        - X,Y,Z dimensions of axis-aligned box
20   }
21                                          { local definitions }
22 norm_deg(d) : if( d, d, d+360 );
22   boxprojection = abs(Dx)*A3*A4 + abs(Dy)*A2*A4 + abs(Dz)*A2*A3;
23   lboxprojection = (      noneg(abs(Px-Dx*Ts)-A2/2)*A3*A4 +
24                          noneg(abs(Py-Dy*Ts)-A3/2)*A2*A4 +
# Line 31 | Line 30 | boxcorr(v) = A1 * v / boxprojection;   { correction for
30   lboxcorr(v) = A1 * v / lboxprojection;  { local box correction }
31  
32   src_theta = Acos(Dz) / DEGREE;                  { 0-180 }
33 < src_phi = norm_deg( atan2(Dy, Dx) / DEGREE );   { 0-360 }
33 > src_phi = mod( atan2(Dy, Dx) / DEGREE, 360 );   { 0-360 }
34                                  { bilateral symmetry }
35   src_phi2 = tri( src_phi, 180 );         { 0-180 }
36                                  { quadrilateral symmetry }
# Line 40 | Line 39 | src_phi4 = tri( src_phi, 90 );         { 0-90 }
39                                  { Type B photometry coordinates }
40   srcB_vert = atan( -Dx/Dz ) / DEGREE;
41   srcB_horiz = Asin(Dy) / DEGREE;
42 <                                { w/ bilateral symmetry }
42 >                                { w/ symmetry }
43 > srcB_vert2 = abs( srcB_vert );
44   srcB_horiz2 = abs( srcB_horiz );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines