1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-11 11:14:04 +02:00

finally explained how to lower the curve order

This commit is contained in:
Pomax
2018-07-20 19:37:49 -07:00
parent b2a26b4fef
commit e3255abb56
23 changed files with 75881 additions and 37 deletions

13
lib/matrix-multiply.js Normal file
View File

@@ -0,0 +1,13 @@
var transpose = require('./matrix-transpose.js');
module.exports = function multiply(m1, m2) {
var M = [];
var m2t = transpose(m2);
m1.forEach( (row, r) => {
M[r] = [];
m2t.forEach( (col, c) => {
M[r][c] = row.map( (v,i) => col[i] * v).reduce( (a,v) => a+v, 0 );
});
});
return M;
};