File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ function SolveQuartic() {
131131 r = - 3.0 / 256 * sq_A * sq_A + 1.0 / 16 * sq_A * B - 1.0 / 4 * A * C + D ;
132132 if ( IsZero ( r ) ) {
133133 // no absolute term: y(y^3 + py + q) = 0
134- output [ 3 ] = q ;
135- output [ 2 ] = p ;
136- output [ 1 ] = 0 ;
137- output [ 0 ] = 1 ;
134+ input [ 3 ] = q ;
135+ input [ 2 ] = p ;
136+ input [ 1 ] = 0 ;
137+ input [ 0 ] = 1 ;
138138 num = SolveCubic ( ) ;
139139 }
140140 else {
@@ -434,7 +434,7 @@ function solveArcMoving() {
434434 // There should never be more than 2 positive, real roots.
435435 var numSolutions = 0 ;
436436 var t ;
437- for ( var i = 0 ; i < 6 && numSolutions < 2 ; ++ i ) {
437+ for ( var i = 0 ; i < numTimes && numSolutions < 2 ; ++ i ) {
438438 t = output [ i ] ;
439439 if ( t <= 0 )
440440 continue ;
You can’t perform that action at this time.
0 commit comments