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

Comparing ray/src/util/klems_full.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 34 | Line 34 | kbin2(pol,azi) = if(pol-90, -1,
34          ) );
35  
36   kbin(Nx,Ny,Nz,Ux,Uy,Uz) = kbin2(Acos(-Dx*Nx-Dy*Ny-Dz*Nz),
37 <        Atan2(-Dx*Ux-Dy*Uy-Dz*Uz,
37 >        Atan2(-Dx*Ux-Dy*Uy-Dz*Uz + (Nx*Dx+Ny*Dy+Nz*Dz)*(Nx*Ux+Ny*Uy+Nz*Uz),
38                  -Dx*(Uy*Nz-Uz*Ny) - Dy*(Uz*Nx-Ux*Nz) - Dz*(Ux*Ny-Uy*Nx)));
39                                  
40   kbinN = kbin(0,-1,0, 0,0,1);    { North bins }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines