mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 20:56:45 -06:00
Add optional parameter
This commit is contained in:
1 parent
533885239d
commit
62bb40c4f4
4 files changed
+5
-7
No files matched your search
+1
-2
@@ -197,8 +197,7 @@ void RicPointTangentManipulatorPartMgr::updateManipulatorFromRay( const cvf::Ray
|
||||
const auto& p1 = m_polyline[i];
|
||||
const auto& p2 = m_polyline[i - 1];
|
||||
|
||||
double normalizedIntersection;
|
||||
const auto pointOnLine = cvf::GeometryTools::projectPointOnLine( p1, p2, newOrigin, &normalizedIntersection );
|
||||
const auto pointOnLine = cvf::GeometryTools::projectPointOnLine( p1, p2, newOrigin );
|
||||
|
||||
const double candidateDistance = pointOnLine.pointDistanceSquared( newOrigin );
|
||||
if ( candidateDistance < closestDistance )
|
||||
|
||||
Reference in new issue
Block a user