Skip to content

Instantly share code, notes, and snippets.

@huckfinnaafb
Created January 7, 2012 05:51
Show Gist options
  • Save huckfinnaafb/1573925 to your computer and use it in GitHub Desktop.
Save huckfinnaafb/1573925 to your computer and use it in GitHub Desktop.
Graph.prototype.toVector = function (i) {
return new Vector(i % this.w, Math.floor(i / this.w), /* ??? */);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment