mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Fix rot(from=,to=,a=)...
This commit is contained in:
parent
ea4a787398
commit
7c14339872
@ -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…
x
Reference in New Issue
Block a user