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):