SZI_PROJEKT_GR1_TRAKTOR/Point.py
marcinljablonski f868b53e7e first commit
2019-05-06 12:51:41 +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]