Created
          January 7, 2012 04:32 
        
      - 
      
- 
        Save huckfinnaafb/1573795 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | 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