From f34f2e0bbfe359cff0c79e4c090e46ed57d8f36e Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 11 Jun 2019 15:30:45 +0800 Subject: [PATCH] not necessary --- src/unittest.scad | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/unittest.scad b/src/unittest.scad index 3bb681d6..cf600587 100644 --- a/src/unittest.scad +++ b/src/unittest.scad @@ -1,17 +1,3 @@ -function round_n(number, float_digits = 4) = - let(n = pow(10, float_digits)) - round(number * n) / n; - -function mul_round_pt(point, n) = - let(pt = point * n) - len(pt) == 2 ? - [round(pt[0]), round(pt[1])] : - [round(pt[0]), round(pt[1]), round(pt[2])]; - -function round_pts(points, float_digits = 4) = - let(n = pow(10, float_digits)) - [for(pt = points) mul_round_pt(pt, n) / n]; - module assertEqualPoint(expected, actual, epsilon = 0.0001) { leng_expected = len(expected); leng_actual = len(actual); @@ -50,12 +36,3 @@ module assertEqualNum(expected, actual, epsilon = 0.0001) { str("expected: ", expected, ", but: ", actual) ); } - -function mul_round_vector(vector, n) = - let(vt = vector * n) - [for(v = vt) round(v)]; - -function round_vectors(vectors, float_digits = 4) = - let(n = pow(10, float_digits)) - [for(vt = vectors) mul_round_vector(vt, n) / n]; -