Revision: | 2.8 |

Committed: | Sat Feb 22 02:07:23 2003 UTC (21 years, 3 months ago) by greg |

Branch: | MAIN |

CVS Tags: | rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad3R7P2, rad3R7P1, rad4R2, rad4R1, rad4R0, rad3R5, rad3R6, rad3R6P1, rad3R8, rad3R9, rad4R2P1, rad5R3, HEAD |

Changes since 2.7: |
+1 -2 lines |

Log Message: | Changes and check-in for 3.5 release Includes new source files and modifications not recorded for many years See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release |

# | Content |
---|---|

1 | { RCSid: $Id$ } |

2 | { |

3 | Coordinate computations for mkillum output. |

4 | |

5 | There are no arguments for the spherical case: |

6 | |

7 | il_alt - Altitude (1 to -1) for spherical coordinates |

8 | il_azi - Azimuth (0 to 2*PI) for sphere |

9 | |

10 | For the hemispherical case, A1-A9 are the unit vectors for the |

11 | hemisphere's coordinate system: |

12 | |

13 | il_alth - Altitude (1 to 0) for hemispherical coordinates |

14 | il_azih - Azimuth (0 to 2*PI) for hemisphere |

15 | } |

16 | |

17 | norm_rad(r) : if( r, r, r+2*PI ); |

18 | |

19 | il_alt = Dz; |

20 | il_azi = norm_rad(Atan2(Dy, Dx)); |

21 | |

22 | il_alth = sq(-Dx*A7-Dy*A8-Dz*A9); |

23 | il_azih = norm_rad(Atan2(-Dx*A4-Dy*A5-Dz*A6, -Dx*A1-Dy*A2-Dz*A3)); |