Fix collinear() for cases when a==b.

This commit is contained in:
Revar Desmera 2020-04-02 18:26:46 -07:00
parent 975185e262
commit ea20f59c44
2 changed files with 2 additions and 1 deletions

View file

@ -61,6 +61,7 @@ function _point_above_below_segment(point, edge) =
// c = Third point.
// eps = Acceptable variance. Default: `EPSILON` (1e-9)
function collinear(a, b, c, eps=EPSILON) =
approx(a,b,eps=eps)? true :
distance_from_line([a,b], c) < eps;

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,253];
BOSL_VERSION = [2,0,254];
// Section: BOSL Library Version Functions