From b3badf5cc69e9e48dd329d5059e062cc08c23460 Mon Sep 17 00:00:00 2001 From: artem-ogre Date: Mon, 21 Aug 2023 13:42:47 +0200 Subject: [PATCH] #7 Revert change to linear interpolation function --- CDT/include/Triangulation.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CDT/include/Triangulation.hpp b/CDT/include/Triangulation.hpp index 19634bf..259b41a 100644 --- a/CDT/include/Triangulation.hpp +++ b/CDT/include/Triangulation.hpp @@ -426,9 +426,7 @@ namespace detail template 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