1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 03:34:12 +02:00

Section on curve order raising/lowering (#211)

* edit to second curve order-raising derivation

* bug fix for curve order-lowering: could invert MtM because it had extra column of zeroes
This commit is contained in:
bhegerle
2019-08-27 16:46:01 +01:00
committed by Pomax
parent 1fcaa1c1bb
commit cc2a505cba
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ var Reordering = {
// build M, which will be (k) rows by (k-1) columns
for(i=0; i<k; i++) {
M[i] = (new Array(k)).fill(0);
M[i] = (new Array(k - 1)).fill(0);
if(i===0) { M[i][0] = 1; }
else if(i===n) { M[i][i-1] = 1; }
else {