traktor/Point.py

18 lines
319 B
Python
Raw Normal View History

2019-04-29 03:49:45 +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]