Skip to content

Commit

Permalink
Removed max again
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette committed Nov 20, 2024
1 parent 287bb0e commit c619f1f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ find files of those names at the top level of this repository. **/

using namespace std;

#define MAX(x,y) (((x) > (y)) ? (x) : (y))

namespace Isis {
/**
* Initialize the ISIS Equatorial Cylindrical shape model.
Expand Down Expand Up @@ -222,7 +220,7 @@ namespace Isis {
// Set dalpha to be half the grid spacing for nyquist sampling
//double dalpha = (PI/180.0)/(2.0*p_demScale);
double cmin = cos((90.0 - 1.0 / (2.0 * demScale())) * DEG2RAD);
double dalpha = MAX(cos(g1lat * DEG2RAD), cmin) / (2.0 * demScale() * RAD2DEG);
double dalpha = std::max(cos(g1lat * DEG2RAD), cmin) / (2.0 * demScale() * RAD2DEG);

// Previous Sensor version used local version of this method with lat and lon doubles. Steven said
// it didn't make a significant difference in speed.
Expand Down Expand Up @@ -390,7 +388,7 @@ namespace Isis {
// put in a test (above) for dd being smaller than the pixel
// convergence tolerance. If so the loop exits without an
// intersection
dalpha = MAX(cos(g2lat * DEG2RAD), cmin) / (2.0 * demScale() * RAD2DEG);
dalpha = std::max(cos(g2lat * DEG2RAD), cmin) / (2.0 * demScale() * RAD2DEG);
} // end while

SpiceDouble intersectionPoint[3];
Expand Down

0 comments on commit c619f1f

Please sign in to comment.