From 8c6285047baa0ef9aa779d6864ac0a0bb52ebf52 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 11 Oct 2020 09:23:13 -0700 Subject: [PATCH] simplify trapezoid _less_than() --- lib/ortho/trapezoid.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ortho/trapezoid.c b/lib/ortho/trapezoid.c index 426abfa7b..cb3b60407 100644 --- a/lib/ortho/trapezoid.c +++ b/lib/ortho/trapezoid.c @@ -134,12 +134,7 @@ static int _greater_than_equal_to (pointf *v0, pointf *v1) static int _less_than (pointf *v0, pointf *v1) { - if (v0->y < v1->y - C_EPS) - return TRUE; - else if (v0->y > v1->y + C_EPS) - return FALSE; - else - return (v0->x < v1->x); + return !_greater_than_equal_to(v0, v1); } /* Initilialise the query structure (Q) and the trapezoid table (T) -- 2.40.0