mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 14:10:06 +02:00
Fixed calls to vmul() with heteerogenous vector sizes.
This commit is contained in:
@@ -64,13 +64,10 @@ function vang(v) =
|
||||
// Example:
|
||||
// vmul([3,4,5], [8,7,6]); // Returns [24, 28, 30]
|
||||
function vmul(v1, v2) =
|
||||
// this thighter check can be done yet because it would break other codes in the library
|
||||
// assert( is_vector(v1) && is_vector(v2,len(v1)), "Incompatible vectors")
|
||||
assert( is_vector(v1) && is_vector(v2), "Invalid vector(s)")
|
||||
assert( is_vector(v1) && is_vector(v2,len(v1)), "Incompatible vectors")
|
||||
[for (i = [0:1:len(v1)-1]) v1[i]*v2[i]];
|
||||
|
||||
|
||||
|
||||
// Function: vdiv()
|
||||
// Description:
|
||||
// Element-wise vector division. Divides each element of vector `v1` by
|
||||
|
Reference in New Issue
Block a user