Skip to content

Instantly share code, notes, and snippets.

@huckfinnaafb
Created January 7, 2012 04:32
Show Gist options
  • Save huckfinnaafb/1573795 to your computer and use it in GitHub Desktop.
Save huckfinnaafb/1573795 to your computer and use it in GitHub Desktop.
Graph.inBounds = function (G, x) {
var vec = x.vector;
return (vec.x < G.w && vec.x >= 0 && vec.y < G.h && vec.y >= 0);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment