| # | Line 1 | Line 1 | |
|---|---|---|
| 1 | < | { SCCSid "$SunId$ LBL" } |
| 2 | < | |
| 1 | > | { RCSid: $Id$ } |
| 2 | { | |
| 3 | tilt.cal - tilt data for IES luminaires | |
| 4 | } | |
| 5 | ||
| 6 | tilt_ang = Acos(Kz) / DEGREE; | |
| 7 | < | tilt_xang = Asin(Jy/sqrt(Jy*Jy+Jz*Jz)) / DEGREE; |
| 7 | > | tilt_xang = if(Jy*Jy-FTINY, Asin(Jy/sqrt(Jy*Jy+Jz*Jz))/DEGREE, 0); |
| 8 | ||
| 9 | tilt_ang2 = tri(tilt_ang, 90); | |
| 10 | tilt_xang2 = tri(tilt_xang, 90); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |