Ejemplo n.º 1
0
 def test_givenDict_whenFromDict_thenPositionIsInstantiated(self):
     pos = Position.from_dict(A_DICT)
     self.assertEqual(pos.x, A_DICT['x'])
     self.assertEqual(pos.y, A_DICT['y'])
Ejemplo n.º 2
0
 def __init__(self, line: Dict):
     self.p1 = Position.from_dict(line["p1"])
     self.p2 = Position.from_dict(line["p2"])
     self.thickness = line["thickness"]
Ejemplo n.º 3
0
 def __init__(self, arc: Dict):
     self.center = Position.from_dict(arc["center"])
     self.radius = arc["radius"]
     self.angle_start = arc["a1"]  # Counter clockwise order
     self.angle_end = arc["a2"]
     self.thickness = arc["thickness"]
Ejemplo n.º 4
0
 def test_givenDict_whenFromDict_thenPositionIsInstantiated(self):
     pos = Position.from_dict(A_DICT)
     self.assertEqual(pos.x, A_DICT['x'])
     self.assertEqual(pos.y, A_DICT['y'])
Ejemplo n.º 5
0
 def __init__(self, line: Dict):
     self.p1 = Position.from_dict(line["p1"])
     self.p2 = Position.from_dict(line["p2"])
     self.thickness = line["thickness"]
Ejemplo n.º 6
0
 def __init__(self, arc: Dict):
     self.center = Position.from_dict(arc["center"])
     self.radius = arc["radius"]
     self.angle_start = arc["a1"]  # Counter clockwise order
     self.angle_end = arc["a2"]
     self.thickness = arc["thickness"]