mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-19 12:29:46 -06:00
Janitor : Use std::clamp and remove obsolete includes of cvfMath
This commit is contained in:
1 parent
084835ce66
commit
1caac72715
34 files changed
+37
-67
No files matched your search
@@ -116,7 +116,7 @@ void RivWellPathSourceInfo::normalizedIntersection( size_t triangleIn
|
||||
|
||||
double norm = 0.0;
|
||||
cvf::GeometryTools::projectPointOnLine( segmentStart, segmentEnd, globalIntersectionInDomain, &norm );
|
||||
norm = cvf::Math::clamp( norm, 0.0, 1.0 );
|
||||
norm = std::clamp( norm, 0.0, 1.0 );
|
||||
|
||||
*firstSegmentIndex = segIndex;
|
||||
*normalizedSegmentIntersection = norm;
|
||||
|
||||
Reference in new issue
Block a user