Created
April 12, 2019 14:01
-
-
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.
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
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