Split compat.scad out into errors.scad and common.scad

This commit is contained in:
Revar Desmera
2019-05-15 21:07:27 -07:00
parent b3c334a6af
commit 26d16a3187
8 changed files with 127 additions and 106 deletions

View File

@@ -10,6 +10,15 @@
// Section: Vector Manipulation
// Function: is_vector()
// Usage:
// is_vector(v)
// Description:
// Returns true if the given value is a list, and at least the first item is a number.
function is_vector(v) = is_list(v) && is_num(v[0]);
// Function: vmul()
// Description:
// Element-wise vector multiplication. Multiplies each element of vector `v1` by