Guest User

Untitled

a guest
Dec 17th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class vec2:
  2. x = 0
  3. y = 0
  4. def __init__(self, x, y):
  5. self.x = x
  6. self.y = y
  7.  
  8. def get(self):
  9. return (self.x, self.y)
  10.  
  11. def add(self, other):
  12. self.x += other.x
  13. self.y += other.y
Add Comment
Please, Sign In to add comment