SZI_PROJEKT_GR1_TRAKTOR/Point.py

18 lines
319 B
Python
Raw Normal View History

2019-05-06 12:51:41 +02:00
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]