From 1d812f8750cb751cdb676e6512fcbbe646a3dc4a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 8 Jun 2019 08:34:05 +0800 Subject: [PATCH] rename --- src/__private__/__in_line.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__private__/__in_line.scad b/src/__private__/__in_line.scad index 45f0a57e..93ee1d7c 100644 --- a/src/__private__/__in_line.scad +++ b/src/__private__/__in_line.scad @@ -1,8 +1,8 @@ function __in_line(line_pts, pt, epsilon = 0.0001) = let( - pts = len(line_pts[0]) == 2 ? [for(pt = line_pts) __to3d(pt)] : line_pts, + pts = len(line_pts[0]) == 2 ? [for(p = line_pts) __to3d(p)] : line_pts, pt3d = len(pt) == 2 ? __to3d(pt) : pt, v1 = pts[0] - pt3d, - v2 = pts[1] - pt3d + v2 = pts[1] - pt3d ) (norm(cross(v1, v2)) < epsilon) && ((v1 * v2) <= epsilon); \ No newline at end of file