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

Comparing ray/src/util/reinhartb.cal (file contents):
Revision 2.4 by greg, Wed Aug 20 06:32:07 2014 UTC vs.
Revision 2.5 by greg, Tue Aug 26 18:56:19 2014 UTC

# Line 20 | Line 20 | Atan2(y,x) : posangle(atan2(y,x));
20                                  { Default to Tregenza sky }
21   MF = 1;
22                                  { Default axis orientation (+Y == north) }
23 < rNx = 0; rNy = 0; rNz = 1;
23 > rNx = 0; rNy = 0; rNz = -1;
24   Ux = 0; Uy = 1; Uz = 0;
25                                  { Compute oriented axis angles }
26   inc_dz = -Dx*rNx-Dy*rNy-Dz*rNz;
27   inc_rx = -Dx*(Uy*rNz-Uz*rNy) - Dy*(Uz*rNx-Ux*rNz) - Dz*(Ux*rNy-Uy*rNx);
28 < inc_ry = -Dx*Ux-Dy*Uy-Dz*Uz - inc_dz*(rNx*Ux+rNy*Uy+rNz*Uz);
28 > inc_ry = Dx*Ux+Dy*Uy+Dz*Uz + inc_dz*(rNx*Ux+rNy*Uy+rNz*Uz);
29  
30   r_alt = Asin(inc_dz);
31   r_azi = Atan2(inc_rx,inc_ry);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines