From 7c143398722c379a7864fad16a8830674d6f3f77 Mon Sep 17 00:00:00 2001 From: Garth Minette <gminette@gmail.com> Date: Mon, 8 Mar 2021 14:51:23 -0800 Subject: [PATCH] Fix rot(from=,to=,a=)... --- transforms.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transforms.scad b/transforms.scad index 0fa9374..21dbd9d 100644 --- a/transforms.scad +++ b/transforms.scad @@ -425,7 +425,7 @@ function rot(a=0, v, cp, from, to, reverse=false, planar=false, p, _m) = cp = is_undef(cp)? undef : point3d(cp), m1 = !is_undef(from)? ( assert(is_num(a)) - affine3d_rot_from_to(from,to) * affine3d_zrot(a) + affine3d_rot_from_to(from,to) * affine3d_rot_by_axis(from,a) ) : !is_undef(v)? assert(is_num(a)) affine3d_rot_by_axis(v,a) : is_num(a)? affine3d_zrot(a) :