reorder functions in array.scad

list_{de,in}creasing -> is_{de,in}creasing, add strict option to both
This commit is contained in:
Adrian Mariano
2021-10-16 23:01:52 -04:00
parent d6576da79e
commit f7b08f1b9d
9 changed files with 341 additions and 284 deletions

View File

@@ -208,6 +208,23 @@ module test_vector_nearest(){
test_vector_nearest();
module test_min_index() {
assert(min_index([5,3,9,6,2,7,8,2,1])==8);
assert(min_index([5,3,9,6,2,7,8,2,7],all=true)==[4,7]);
}
test_min_index();
module test_max_index() {
assert(max_index([5,3,9,6,2,7,8,9,1])==2);
assert(max_index([5,3,9,6,2,7,8,9,7],all=true)==[2,7]);
}
test_max_index();
module test_pointlist_bounds() {
pts = [
[-53,27,12],