fix tests

This commit is contained in:
Adrian Mariano 2021-09-06 18:38:00 -04:00
parent 0aad39c7e5
commit 1763c51a35
2 changed files with 5 additions and 6 deletions

View file

@ -216,12 +216,6 @@ test_affine3d_skew_yz();
////////////////////////////
module test_affine3d_frame_map() {
assert(approx(affine3d_frame_map(x=[1,1,0], y=[-1,1,0]), affine3d_zrot(45)));
}
test_affine3d_frame_map();
module test_apply() {
assert(approx(apply(affine3d_xrot(90),2*UP),2*FRONT));
assert(approx(apply(affine3d_yrot(90),2*UP),2*RIGHT));

View file

@ -462,6 +462,11 @@ module test_xyzrot() {
}
test_xyzrot();
module test_frame_map() {
assert(approx(frame_map(x=[1,1,0], y=[-1,1,0]), affine3d_zrot(45)));
}
test_frame_map();
module test_skew() {
m = affine3d_skew(sxy=2, sxz=3, syx=4, syz=5, szx=6, szy=7);