mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-18 17:39:37 +00:00
fix tests
This commit is contained in:
parent
0aad39c7e5
commit
1763c51a35
2 changed files with 5 additions and 6 deletions
|
@ -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() {
|
module test_apply() {
|
||||||
assert(approx(apply(affine3d_xrot(90),2*UP),2*FRONT));
|
assert(approx(apply(affine3d_xrot(90),2*UP),2*FRONT));
|
||||||
assert(approx(apply(affine3d_yrot(90),2*UP),2*RIGHT));
|
assert(approx(apply(affine3d_yrot(90),2*UP),2*RIGHT));
|
||||||
|
|
|
@ -462,6 +462,11 @@ module test_xyzrot() {
|
||||||
}
|
}
|
||||||
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() {
|
module test_skew() {
|
||||||
m = affine3d_skew(sxy=2, sxz=3, syx=4, syz=5, szx=6, szy=7);
|
m = affine3d_skew(sxy=2, sxz=3, syx=4, syz=5, szx=6, szy=7);
|
||||||
|
|
Loading…
Reference in a new issue