32 #include "CubeManager.h"
48 #define MAX(x,y) (((x) > (y)) ? (x) : (y))
97 QString message =
"Pixel Ifov offsets not implemented for this camera.";
160 vector<double> lookC(v, v + 3);
170 memcpy(
m_lookB, &lookB[0],
sizeof(
double) * 3);
185 return target()->
shape()->intersectSurface(sB, lookB);
303 std::vector<double> sunB(
m_uB,
m_uB+3);
326 std::vector<double> sunB(
m_uB,
m_uB+3);
346 const double longitude,
bool backCheck) {
380 const double longitude,
381 const double radius,
bool backCheck) {
453 const vector<double> &sB =
487 vector<double> lookB(3);
520 vector<double> lookB(3);
527 recrad_c((SpiceDouble *)&lookJ[0], &range, &
m_ra, &
m_dec);
541 vector<double> lookJ(3);
542 radrec_c(1.0, ra *
PI / 180.0, dec *
PI / 180.0, (SpiceDouble *)&lookJ[0]);
555 scSurfaceVector[0] =
m_lookB[0];
556 scSurfaceVector[1] =
m_lookB[1];
557 scSurfaceVector[2] =
m_lookB[2];
567 SpiceDouble psB[3], upsB[3];
578 vsub_c(pB, (SpiceDouble *) &sB[0], psB);
579 unorm_c(psB, upsB, &dist);
593 if (lst < 0.0) lst += 24.0;
594 if (lst > 24.0) lst -= 24.0;
614 double dist = sqrt(xChange*xChange + yChange*yChange + zChange*zChange);
615 dist /= 149597870.691;
633 double rlat = lat *
PI / 180.0;
634 double rlon = lon *
PI / 180.0;
644 double xChange = spB[0] - ssB[0];
645 double yChange = spB[1] - ssB[1];
646 double zChange = spB[2] - ssB[2];
649 double dist = sqrt(xChange*xChange + yChange*yChange + zChange*zChange);