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 Oct 16, 2023
1 parent fb3cde6 commit 45c11ed
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 @@ -484,9 +484,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 45c11ed

Please sign in to comment.