traktor/Point.py
marcinljablonski b7198cb910 .
2019-04-29 03:49:45 +02:00

18 lines
319 B
Python

class Point:
def __init__(self, cord):
self.x = cord[0]
self.y = cord[1]
def get_cord(self):
return (self.x, self.y)
def get_x(self):
return self.x
def get_y(self):
return self.y
def set_cord(self, cord):
self.x = cord[0]
self.y = cord[1]