3D Well path plots: clean up some indentation and remove an unnecessary epsilon

This commit is contained in:
Gaute Lindkvist
2018-04-13 15:29:13 +02:00
parent b48adbbaa9
commit fd63ae7531
3 changed files with 3 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ cvf::Vec3d RigWellPathGeometryTools::estimateDominantDirectionInXYPlane(const Ri
{
cvf::Vec3d vec = points[i] - points[i - 1];
vec.z() = 0.0;
if (directionSum.length() > 0.0 && (directionSum * vec) < std::numeric_limits<double>::epsilon())
if (directionSum.length() > 0.0 && (directionSum * vec) < 0.0)
{
vec *= -1;
}