Files
old-krovovi-kalkulator/helix/models/corner.py

14 lines
385 B
Python
Raw Normal View History

2017-12-24 23:35:11 +01:00
class Corner(object):
2017-12-25 10:39:02 +01:00
def __init__(self, x, y, length_ccw, length_cw, angle):
2017-12-24 23:35:11 +01:00
self.x = x
self.y = y
2017-12-25 10:39:02 +01:00
self.length_ccw = length_ccw
self.length_cw = length_cw
2017-12-24 23:35:11 +01:00
self.angle = angle
@property
def dictionary(self):
2018-01-15 13:31:00 +01:00
return {"x": self.x, "y": self.y, "length_ccw": self.length_ccw, "length_cw": self.length_cw, "angle": self.angle}