From 8385bbb145c4e7f2bfea5e80500482bbebfa2539 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 2 May 2019 09:56:05 +0800 Subject: [PATCH] rename --- src/rotate_p.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rotate_p.scad b/src/rotate_p.scad index 7480cfcb..49b62f5c 100644 --- a/src/rotate_p.scad +++ b/src/rotate_p.scad @@ -72,7 +72,7 @@ function _rotz(pt, a) = function _rotate_p_3d(point, a) = _rotz(_roty(_rotx(point, a[0]), a[1]), a[2]); -function to_avect(a) = +function _to_avect(a) = len(a) == 3 ? a : ( len(a) == 2 ? [a[0], a[1], 0] : ( len(a) == 1 ? [a[0], 0, 0] : [0, 0, a] @@ -80,7 +80,7 @@ function to_avect(a) = ); function _rotate_p(p, a) = - let(angle = to_avect(a)) + let(angle = _to_avect(a)) len(p) == 3 ? _rotate_p_3d(p, angle) : __to2d(