mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-19 10:09:39 +00:00
Fix rot(from=,to=,a=)...
This commit is contained in:
parent
ea4a787398
commit
7c14339872
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
cp = is_undef(cp)? undef : point3d(cp),
|
||||||
m1 = !is_undef(from)? (
|
m1 = !is_undef(from)? (
|
||||||
assert(is_num(a))
|
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_undef(v)? assert(is_num(a)) affine3d_rot_by_axis(v,a) :
|
||||||
is_num(a)? affine3d_zrot(a) :
|
is_num(a)? affine3d_zrot(a) :
|
||||||
|
|
Loading…
Reference in a new issue