Skip to content

Commit

Permalink
Fixes by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 13, 2024
1 parent 9dfe155 commit 340c138
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,7 @@ bool RigCellGeometryTools::lineIntersectsPolygon2D( const cvf::Vec3d a, const cv
if ( lineIntersectsLine2D( a, b, polygon[i - 1], polygon[i] ) ) return true;
}

if ( lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] ) ) return true;

return false;
return lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] );
}

//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 340c138

Please sign in to comment.