Created
February 26, 2013 20:48
-
-
Save andrewdolce/5042025 to your computer and use it in GitHub Desktop.
iterateOnce result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( closest !== Infinity ) { | |
// Found an adjustment that improves the results, so set the | |
// coefficient to its new value. | |
thrusters[ closestIdx ].coeff = closestCoeff; | |
return false; | |
} else { | |
// No adjustment was found, so we have converged. | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment