mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 17:54:18 +02:00
use norm to support 3D
This commit is contained in:
@@ -3,4 +3,4 @@ function __in_line2d(line_pts, pt, epsilon = 0.0001) =
|
||||
v1 = line_pts[0] - pt,
|
||||
v2 = line_pts[1] - pt
|
||||
)
|
||||
(abs(cross(v1, v2)) < epsilon) && ((v1 * v2) <= epsilon);
|
||||
(norm(cross(v1, v2)) < epsilon) && ((v1 * v2) <= epsilon);
|
Reference in New Issue
Block a user