added length in cw direction

This commit is contained in:
GotPPay
2017-12-25 10:39:02 +01:00
parent cc490fbc6a
commit ef186a3754
2 changed files with 7 additions and 5 deletions

View File

@@ -1,12 +1,13 @@
class Corner(object):
def __init__(self, x, y, length, angle):
def __init__(self, x, y, length_ccw, length_cw, angle):
self.x = x
self.y = y
self.length = length
self.length_ccw = length_ccw
self.length_cw = length_cw
self.angle = angle
@property
def dictionary(self):
return {"x": self.x, "y": self.y, "length": self.length, "angle": self.angle}
return {"x": self.x, "y": self.y, "length ccw": self.length_ccw, "length cw : ": self.length_cw, "angle": self.angle}