/**
* {@link chunmap.model.elem.Triangle#computeOuterCenter()} 的测试方法。
*/
@Test
public void testComputeOuterCenter() {
CPoint p1 = new Coordinate2D(2, 2);
CPoint p2 = new Coordinate2D(0, 0);
CPoint p3 = new Coordinate2D(2, 0);
Triangle tria = new Triangle(p1, p2, p3);
CPoint p = tria.computeOuterCenter();
CPoint ep = new Coordinate2D(1, 1);
assertTrue(p.equals(ep));
}