#34 gcode algo

closes #34
algorithm that creates a gcode from a path
unittest for the algorithm
This commit is contained in:
Ian
2019-02-20 15:01:16 -05:00
parent 5a40ea168e
commit 94bf542799
4 changed files with 196 additions and 0 deletions

View File

@@ -5,6 +5,12 @@ class Coordinate:
def __init__(self, x = -1, y = -1):
self._x = x
self._y = y
def __eq__(self, other):
return self.getX() == other.getX() and self.getY() == other.getY()
def __ne__(self, other):
return not self.__eq__(other)
def setX(self, x):
self._x = x