mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-20 07:21:43 +02:00
no really, < s
This commit is contained in:
@@ -9,7 +9,7 @@ function binomial(n,k) {
|
||||
while(n >= lut.length) {
|
||||
var s = lut.length;
|
||||
var nextRow = [1];
|
||||
for(var i=1,prev=s-1; i<=s; i++) {
|
||||
for(var i=1,prev=s-1; i<s; i++) {
|
||||
nextRow[i] = lut[prev][i-1] + lut[prev][i];
|
||||
}
|
||||
nextRow[s] = 1;
|
||||
|
Reference in New Issue
Block a user