Skip to content

Instantly share code, notes, and snippets.

@andrewdolce
Created February 26, 2013 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewdolce/5042025 to your computer and use it in GitHub Desktop.
Save andrewdolce/5042025 to your computer and use it in GitHub Desktop.
iterateOnce result
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