mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Fix regressions for fixed rot()
This commit is contained in:
parent
7c14339872
commit
a3f841de7d
1 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ module test_rot() {
|
||||||
for (a = angs) {
|
for (a = angs) {
|
||||||
assert_equal(
|
assert_equal(
|
||||||
rot(from=vec1, to=vec2, a=a),
|
rot(from=vec1, to=vec2, a=a),
|
||||||
affine3d_rot_from_to(vec1,vec2) * affine3d_zrot(a),
|
affine3d_rot_from_to(vec1,vec2) * affine3d_rot_by_axis(vec1,a),
|
||||||
info=str(
|
info=str(
|
||||||
"from = ", vec1, ", ",
|
"from = ", vec1, ", ",
|
||||||
"to = ", vec2, ", ",
|
"to = ", vec2, ", ",
|
||||||
|
@ -314,7 +314,7 @@ module test_rot() {
|
||||||
assert_equal(
|
assert_equal(
|
||||||
rot(from=vec1, to=vec2, a=a, p=pts3d),
|
rot(from=vec1, to=vec2, a=a, p=pts3d),
|
||||||
apply(
|
apply(
|
||||||
affine3d_rot_from_to(vec1,vec2) * affine3d_zrot(a),
|
affine3d_rot_from_to(vec1,vec2) * affine3d_rot_by_axis(vec1,a),
|
||||||
pts3d
|
pts3d
|
||||||
),
|
),
|
||||||
info=str(
|
info=str(
|
||||||
|
|
Loading…
Reference in a new issue