Multiple bugfixes for and argument re-arrangement. Added vfloor() and vceil().

This commit is contained in:
Revar Desmera
2020-03-25 19:50:38 -07:00
parent 7292250162
commit 6b4fb3184c
5 changed files with 191 additions and 171 deletions

View File

@@ -95,6 +95,17 @@ function vdiv(v1, v2) = [for (i = [0:1:len(v1)-1]) v1[i]/v2[i]];
function vabs(v) = [for (x=v) abs(x)];
// Function: vfloor()
// Description:
// Returns the given vector after performing a `floor()` on all items.
function vfloor(v) = [for (x=v) floor(x)];
// Function: vceil()
// Description:
// Returns the given vector after performing a `ceil()` on all items.
function vceil(v) = [for (x=v) ceil(x)];
// Function: unit()
// Description: