ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
|
Root Listing
root
/
Development
/
ray
/
lib
/
fisheye.cal
Revision:
1.2
Committed:
Tue Mar 18 17:30:17 2003 UTC
(22 years, 7 months ago) by
greg
Branch:
MAIN
CVS Tags:
HEAD
Changes since
1.1
:
+0 -0 lines
State:
FILE REMOVED
Log Message:
Decided to move ray/lib directory into non-CVS distribution
File Contents
#
Content
1
{
2
Calculate coordinates for a 180 degree fisheye lens.
3
Assume view direction is (0,1,0), view up (0,0,1), (1,0,0) right.
4
5
4/30/90
6
}
7
8
fish_u = .5 + Dx/fish_Rxz * fish_Ry;
9
fish_v = .5 + Dz/fish_Rxz * fish_Ry;
10
11
fish_Rxz = sqrt(Dx*Dx + Dz*Dz);
12
fish_Ry = acos(Dy) / PI;