Skip to content

Commit

Permalink
Fix compile error that got left out on last merge
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Sep 13, 2019
1 parent 1ab713b commit 6086fec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/OrientationLib/LaueOps/CubicOps.cpp
Expand Up @@ -1561,7 +1561,7 @@ bool inUnitTriangleD(double eta, double chi)
{
chiMax = sqrt(1.0 / (2.0 + std::tan(eta) * std::tan(eta)));
}
SIMPLibMath::boundD(chiMax, -1.0f, 1.0f);
SIMPLibMath::bound(chiMax, -1.0, 1.0);
chiMax = acos(chiMax);
return !(eta < 0.0 || eta > (45.0 * SIMPLib::Constants::k_PiOver180) || chi < 0.0 || chi > chiMax);
}
Expand Down Expand Up @@ -1639,10 +1639,8 @@ SIMPL::Rgb CubicOps::generateIPFColor(double phi1, double phi, double phi2, doub
eta = std::atan2(p[1], p[0]);
if(!inUnitTriangleD(eta, chi))
{
inUnitTriangleCounter++;
continue;
}

break;
}
double etaMin = 0.0;
Expand Down

0 comments on commit 6086fec

Please sign in to comment.