def test_intersection_equal_circles(self): "test intersection of equal circles" circ1 = Circle() circ2 = Circle() self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_touching_intersection(self): "test intersection of tangent circles" circ1 = Circle() circ2 = Circle(Vec2D(1, 0)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_circle_circle_intersection(self): "test intersection of intersecting circles" circ1 = Circle() circ2 = Circle(Vec2D(0.5, 0)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_not_intersecting_circles(self): "test intersection of not intersecting circles" circ1 = Circle() circ2 = Circle(Vec2D(10, 0)) self.assertFalse(circ1.intersects(circ2)) self.assertFalse(circ2.intersects(circ1))
def test_touching_intersection(self): "test intersection of tangent circles" circ1 = Circle() circ2 = Circle(Vec2D(1, 0)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_intersection_equal_circles(self): "test intersection of equal circles" circ1 = Circle() circ2 = Circle() self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_not_intersecting_circles(self): "test intersection of not intersecting circles" circ1 = Circle() circ2 = Circle(Vec2D(10, 0)) self.assertFalse(circ1.intersects(circ2)) self.assertFalse(circ2.intersects(circ1))
def test_circle_circle_intersection(self): "test intersection of intersecting circles" circ1 = Circle() circ2 = Circle(Vec2D(0.5, 0)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_contains_impl_intersects(self): "containment implies intersection" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_contains_impl_intersects(self): "containment implies intersection" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))