ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/lib/globe.cal
Revision: 1.1
Committed: Wed Mar 12 17:45:48 2003 UTC (22 years, 1 month ago) by greg
Branch: MAIN
Log Message:
Added the rest of the missing files to ray/lib/

File Contents

# Content
1 {
2 Coordinate mapping for globe onto unit sphere
3 assuming uniform projection of latitude and longitude
4
5 A1 = image height/width
6 }
7
8 globe_u = if(A1-1, 1, 1/A1) * (.5 + Atan2(Py, Px)/(2*PI)) ;
9
10 globe_v = if(A1-1, A1, 1) * (1 - Acos(Pz)/PI) ;