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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user