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(