mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fixed 2D rot(from,ro)
This commit is contained in:
parent
a0f17009c0
commit
f8ee274049
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,8 @@ module rot(a=0, v=undef, cp=undef, from=undef, to=undef, reverse=false)
|
|||
translate(cp) rot(a=a, v=v, from=from, to=to, reverse=reverse) translate(-cp) children();
|
||||
} else if (!is_undef(from)) {
|
||||
assert(!is_undef(to), "`from` and `to` should be used together.");
|
||||
from = point3d(from);
|
||||
to = point3d(to);
|
||||
axis = vector_axis(from, to);
|
||||
ang = vector_angle(from, to);
|
||||
if (ang < 0.0001 && a == 0) {
|
||||
|
|
Loading…
Reference in a new issue