13 lines
290 B
Python
13 lines
290 B
Python
|
|
|
|
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}
|