mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
refactor
This commit is contained in:
@@ -85,14 +85,6 @@ module assertEqualNum(expected, actual, epsilon = 0.0001) {
|
||||
}
|
||||
}
|
||||
|
||||
module round_echo_pts(points, float_digits = 4) {
|
||||
echo(round_pts(points, float_digits));
|
||||
}
|
||||
|
||||
module round_echo_n(number, float_digits = 4) {
|
||||
echo(round_n(number, float_digits));
|
||||
}
|
||||
|
||||
function mul_round_vector(vector, n) =
|
||||
let(vt = vector * n)
|
||||
[for(v = vt) round(v)];
|
||||
@@ -101,6 +93,3 @@ function round_vectors(vectors, float_digits = 4) =
|
||||
let(n = pow(10, float_digits))
|
||||
[for(vt = vectors) mul_round_vector(vt, n) / n];
|
||||
|
||||
module round_echo_vectors(vectors, float_digits = 4) {
|
||||
echo(round_vectors(vectors, float_digits = 4));
|
||||
}
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user