42   NewHorizonsLorriDistortionMap::NewHorizonsLorriDistortionMap(
Camera *parent, 
double e2, 
double e5,
    72     double rr = x * x + y * y;
    86     double dr = 1.0 - rr * p_e2 - y * p_e5 - x * p_e6;
   118     double xx, yy, xy, rr;
   119     double xdistortion, ydistortion;
   120     double xdistorted, ydistorted;
   121     double xprevious, yprevious;
   123     xprevious = 1000000.0;
   124     yprevious = 1000000.0;
   126     double tolerance = 0.000001;
   128     bool bConverged = 
false;
   133     for (
int i = 0; i < 50; i++) {
   140       xdistortion = xt * rr * p_e2 + xy * p_e5 + xx * p_e6;
   141       ydistortion = yt * rr * p_e2 + yy * p_e5 + xy * p_e6;
   145       xt = ux + xdistortion;
   146       yt = uy + ydistortion;
   153       if ((fabs(xt - xprevious) <= tolerance) && (fabs(yt - yprevious) <= tolerance)) {
 double p_focalPlaneX
Distorted focal plane x. 
 
Namespace for the standard library. 
 
bool SetUndistortedFocalPlane(const double dx, const double dy)
Compute distorted focal plane x/y. 
 
double p_undistortedFocalPlaneX
Undistorted focal plane x. 
 
Distort/undistort focal plane coordinates. 
 
double p_focalPlaneY
Distorted focal plane y. 
 
double p_undistortedFocalPlaneY
Undistorted focal plane y. 
 
Namespace for ISIS/Bullet specific routines. 
 
Unless noted otherwise, the portions of Isis written by the USGS are public domain. 
 
bool SetFocalPlane(const double ux, const double uy)
Compute undistorted focal plane x/y.