mat3_to_mat4() -> affine2d_to_3d() and various trailing space and formatting issues.

This commit is contained in:
Revar Desmera
2019-08-09 13:07:18 -07:00
parent e8254cec7d
commit 65b78f90ae
2 changed files with 115 additions and 103 deletions

View File

@@ -17,9 +17,9 @@
function ident(n) = [for (i = [0:1:n-1]) [for (j = [0:1:n-1]) (i==j)?1:0]];
// Function: affine2d_to_affine3d()
// Function: affine2d_to_3d()
// Description: Takes a 3x3 affine2d matrix and returns its 4x4 affine3d equivalent.
function mat3_to_mat4(m) = concat(
function affine2d_to_3d(m) = concat(
[for (r = [0:2])
concat(
[for (c = [0:2]) m[r][c]],