mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-02 02:00:32 +02:00
Fix collinear() for cases when a==b.
This commit is contained in:
@@ -61,6 +61,7 @@ function _point_above_below_segment(point, edge) =
|
|||||||
// c = Third point.
|
// c = Third point.
|
||||||
// eps = Acceptable variance. Default: `EPSILON` (1e-9)
|
// eps = Acceptable variance. Default: `EPSILON` (1e-9)
|
||||||
function collinear(a, b, c, eps=EPSILON) =
|
function collinear(a, b, c, eps=EPSILON) =
|
||||||
|
approx(a,b,eps=eps)? true :
|
||||||
distance_from_line([a,b], c) < eps;
|
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
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user