mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 13:49:51 +02:00
Added in range step of 1 to avoid errors.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
// Description: Create an `n` by `n` identity matrix.
|
||||
// Arguments:
|
||||
// n = The size of the identity matrix square, `n` by `n`.
|
||||
function ident(n) = [for (i = [0:n-1]) [for (j = [0:n-1]) (i==j)?1:0]];
|
||||
function ident(n) = [for (i = [0:1:n-1]) [for (j = [0:1:n-1]) (i==j)?1:0]];
|
||||
|
||||
|
||||
// Function: affine2d_to_affine3d()
|
||||
|
Reference in New Issue
Block a user