mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-02 17:22:35 +02:00
apply tweaks
This commit is contained in:
@@ -404,6 +404,8 @@ function affine3d_rot_from_to(from, to) =
|
||||
from = unit(point3d(from)),
|
||||
to = unit(point3d(to))
|
||||
) approx(from,to)? affine3d_identity() :
|
||||
from.z==0 && to.z==0 ? affine3d_zrot(v_theta(point2d(to)) - v_theta(point2d(from)))
|
||||
:
|
||||
let(
|
||||
u = vector_axis(from,to),
|
||||
ang = vector_angle(from,to),
|
||||
|
Reference in New Issue
Block a user