Better codes for _closest_s

This commit is contained in:
RonaldoCMP 2021-06-25 14:43:38 +01:00
parent e63c1680a6
commit 83f7ec499e

View file

@ -1778,7 +1778,7 @@ function circle_line_intersection(c,r,d,line,bounded=false,eps=EPSILON) =
function noncollinear_triple(points,error=true,eps=EPSILON) =
assert( is_path(points), "Invalid input points." )
assert( is_finite(eps) && (eps>=0), "The tolerance should be a non-negative value." )
len(pts)<3 ? [] :
len(points)<3 ? [] :
let(
pa = points[0],
b = furthest_point(pa, points),