* 的测试方法。
*/
@Test
public void testCrossCoordinate2D() {
// y=4x+1;
CPoint p1 = new Coordinate2D(1, 5);
CPoint p2 = new Coordinate2D(-1, -3);
Line l1 = new Line(p1, p2);
// y=x-1;
Line l2 = new Line(1, -1);
CPoint p = new Coordinate2D(-2d / 3d, (-2d / 3d) - 1);
assertTrue(p.equals(l1.crossPoint(l2)));
assertTrue(p.equals(l2.crossPoint(l1)));
}