mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 18:06:33 +02:00
Better codes for _closest_s
This commit is contained in:
@@ -1778,7 +1778,7 @@ function circle_line_intersection(c,r,d,line,bounded=false,eps=EPSILON) =
|
|||||||
function noncollinear_triple(points,error=true,eps=EPSILON) =
|
function noncollinear_triple(points,error=true,eps=EPSILON) =
|
||||||
assert( is_path(points), "Invalid input points." )
|
assert( is_path(points), "Invalid input points." )
|
||||||
assert( is_finite(eps) && (eps>=0), "The tolerance should be a non-negative value." )
|
assert( is_finite(eps) && (eps>=0), "The tolerance should be a non-negative value." )
|
||||||
len(pts)<3 ? [] :
|
len(points)<3 ? [] :
|
||||||
let(
|
let(
|
||||||
pa = points[0],
|
pa = points[0],
|
||||||
b = furthest_point(pa, points),
|
b = furthest_point(pa, points),
|
||||||
|
Reference in New Issue
Block a user