From 9121959b2596a3ef0e737d5a9f933668cf065721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Fri, 5 Apr 2024 01:00:08 +0500 Subject: [PATCH] Fix rendering a bit. --- lines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lines.py b/lines.py index 4f064c1..71ffb0d 100644 --- a/lines.py +++ b/lines.py @@ -13,7 +13,7 @@ def cLineIntersection(cA0, cA1, cB0, cB1): @jit def Between(rA,rB,rN): - return (rA < rN and rN < rB) or (rB < rN and rN < rA) + return (rA <= rN and rN <= rB) or (rB <= rN and rN <= rA) @jit def cBetween(cA,cB,cN):