47     QString odtxkey = 
"INS" + 
toString(naifIkCode) + 
"_DISTORTION_COEF_X";
    48     QString odtykey = 
"INS" + 
toString(naifIkCode) + 
"_DISTORTION_COEF_Y";
    50     for(
int i = 0; i < 4; ++i) {
   107     double r2 = x*x + y*y;
   108     double r = qSqrt(r2); 
   150     double xx, yy, r, rr, rrr, dr_x, dr_y;
   151     double xdistortion, ydistortion;
   152     double xdistorted, ydistorted;
   153     double xprevious, yprevious;
   155     xprevious = 1000000.0;
   156     yprevious = 1000000.0;
   158     double tolerance = 0.000001;
   159     bool bConverged = 
false;
   164     for (
int i = 0; i < 50; i++) {
   181       xt = ux - xdistortion;
   182       yt = uy - ydistortion;
   189       if ((fabs(xt - xprevious) < tolerance) && (fabs(yt - yprevious) < tolerance)) {
 double p_focalPlaneX
Distorted focal plane x. 
 
std::vector< double > p_odkx
distortion x coefficients 
 
KaguyaTcCameraDistortionMap(Camera *parent, int naifIkCode)
Kaguya TC Camera distortion map constructor. 
 
QString toString(bool boolToConvert)
Global function to convert a boolean to a string. 
 
double p_undistortedFocalPlaneX
Undistorted focal plane x. 
 
Camera * p_camera
The camera to distort/undistort. 
 
Distort/undistort focal plane coordinates. 
 
virtual ~KaguyaTcCameraDistortionMap()
Destructor. 
 
double p_focalPlaneY
Distorted focal plane y. 
 
std::vector< double > p_odky
distortion y coefficients 
 
double p_undistortedFocalPlaneY
Undistorted focal plane y. 
 
Namespace for ISIS/Bullet specific routines. 
 
virtual bool SetFocalPlane(double dx, double dy)
Compute undistorted focal plane x/y. 
 
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y. 
 
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.