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

Comparing ray/src/util/klems_half.cal (file contents):
Revision 1.1 by greg, Sat Jul 19 00:28:38 2014 UTC vs.
Revision 1.2 by greg, Mon Jul 21 15:59:47 2014 UTC

# Line 33 | Line 33 | khbin2(pol,azi) = if(pol-90, -1,
33          ) );
34  
35   khbin(Nx,Ny,Nz,Ux,Uy,Uz) = khbin2(Acos(-Dx*Nx-Dy*Ny-Dz*Nz),
36 <        Atan2(-Dx*Ux-Dy*Uy-Dz*Uz,
36 >        Atan2(-Dx*Ux-Dy*Uy-Dz*Uz + (Nx*Dx+Ny*Dy+Nz*Dz)*(Nx*Ux+Ny*Uy+Nz*Uz),
37                  -Dx*(Uy*Nz-Uz*Ny) - Dy*(Uz*Nx-Ux*Nz) - Dz*(Ux*Ny-Uy*Nx)));
38                                  
39   Nkhbins : khaccum(khnaz(0));    { Number of bins for one elevation }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines