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.1 by greg, Tue Jul 22 02:12:48 2014 UTC vs.
Revision 2.2 by greg, Tue Jul 22 23:21:56 2014 UTC

# Line 13 | Line 13
13   }
14                                  { Useful factors and functions }
15   DEGREE : PI/180;
16 < Asin(x) : if(x-1, PI/2, if(-1-x, -PI/2, asin(x)));
17 < posangle(a) : if(-a, a + 2*PI, a);
16 > Asin(x) : if(x-1, PI/2, if(-1-x, -PI/2, asin(x))) / DEGREE;
17 > posangle(a) : if(-a, a + 2*PI, a) / DEGREE;
18   Atan2(y,x) : posangle(atan2(y,x));
19  
20                                  { Default to Tregenza sky }
# Line 28 | Line 28 | inc_rx = -Dx*(Uy*Nz-Uz*Ny) - Dy*(Uz*Nx-Ux*Nz) - Dz*(Ux
28   inc_ry = -Dx*Ux-Dy*Uy-Dz*Uz - inc_dz*(Nx*Ux+Ny*Uy+Nz*Uz);
29  
30   r_alt = Asin(inc_dz)/DEGREE;
31 < r_azi = Atan2(inc_rx,inc_ry)/DEGREE;
31 > r_azi = Atan2(inc_rx,inc_ry);
32  
33   alpha = 90/(MF*7 + .5);         { Separation between rows in degrees }
34                                  { Number of patches per row }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines