Пример #1
0
 def test_circle_center_impossible(self):
     start = Vec2d(-10, 0)
     face = Vec2d(20, 0)
     radius = 9
     self.assertRaises(lambda: circle_center(start, face, radius), ValueError)
Пример #2
0
 def test_circle_center(self):
     start = Vec2d(97, 10)
     face = Vec2d(6, 0)
     radius = 5
     center = circle_center(start, face, radius)
     self.assertEquals(center, Vec2d(100, 6))