32 #include "CubeManager.h"
48 #define MAX(x,y) (((x) > (y)) ? (x) : (y))
98 QString message =
"Pixel Ifov offsets not implemented for this camera.";
163 vector<double> lookC(v, v + 3);
173 memcpy(
m_lookB, &lookB[0],
sizeof(
double) * 3);
188 return target()->
shape()->intersectSurface(sB, lookB);
327 std::vector<double> sunB(
m_uB,
m_uB+3);
350 std::vector<double> sunB(
m_uB,
m_uB+3);
371 const double longitude,
406 const double longitude,
481 const vector<double> &sB =
514 vector<double> lookB(3);
553 vector<double> lookB(3);
560 recrad_c((SpiceDouble *)&lookJ[0], &range, &
m_ra, &
m_dec);
575 vector<double> lookJ(3);
576 radrec_c(1.0, ra *
PI / 180.0, dec *
PI / 180.0, (SpiceDouble *)&lookJ[0]);
592 scSurfaceVector[0] =
m_lookB[0];
593 scSurfaceVector[1] =
m_lookB[1];
594 scSurfaceVector[2] =
m_lookB[2];
604 SpiceDouble psB[3], upsB[3];
615 vsub_c(pB, (SpiceDouble *) &sB[0], psB);
616 unorm_c(psB, upsB, &dist);
632 if (lst < 0.0) lst += 24.0;
633 if (lst > 24.0) lst -= 24.0;
655 double dist = sqrt(xChange*xChange + yChange*yChange + zChange*zChange);
656 dist /= 149597870.691;
675 double rlat = lat *
PI / 180.0;
676 double rlon = lon *
PI / 180.0;
686 double xChange = spB[0] - ssB[0];
687 double yChange = spB[1] - ssB[1];
688 double zChange = spB[2] - ssB[2];
691 double dist = sqrt(xChange*xChange + yChange*yChange + zChange*zChange);