extract informations about corners

This commit is contained in:
GotPPay
2017-12-24 23:35:11 +01:00
parent db7453f438
commit 7daa9db4ed
3 changed files with 53 additions and 2 deletions

12
helix/models/corner.py Normal file
View File

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