mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fix collinear() for cases when a==b.
This commit is contained in:
parent
975185e262
commit
ea20f59c44
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,253];
|
||||
BOSL_VERSION = [2,0,254];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue