Skip to content

Commit

Permalink
#7 Revert change to linear interpolation function
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Aug 21, 2023
1 parent 863553c commit b3badf5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,7 @@ namespace detail
template <typename T>
T lerp(const T& a, const T& b, const T t)
{
if((a <= 0 && b >= 0) || (a >= 0 && b <= 0))
return (T(1) - t) * a + t * b;
return a + t * (b - a);
return (T(1) - t) * a + t * b;
}

// Precondition: ab and cd intersect normally
Expand Down

0 comments on commit b3badf5

Please sign in to comment.