Skip to content

Instantly share code, notes, and snippets.

@chuwilliamson
Created April 12, 2019 14:01
Show Gist options
  • Save chuwilliamson/6c5fdf620a24a586df06961a4e6ed893 to your computer and use it in GitHub Desktop.
Save chuwilliamson/6c5fdf620a24a586df06961a4e6ed893 to your computer and use it in GitHub Desktop.
Write a function that will validate whether a point is inside of a rectangle. The design of the implementation is yours however you must justify why you made that decision. FYI: This will be something you use later, a lot . Pm for example.
class Rect(object):
def __init__(self, x, y , width, height):
'''thestuff'''
def Contains(self, point):
return point.'''thestuff'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment