}
public void testIntersection() {
Line2D l = new Line2D(new Vec2D(), new Vec2D(100, 100));
Line2D k = new Line2D(new Vec2D(0, 50), new Vec2D(100, 50));
LineIntersection isec = l.intersectLine(k);
assertEquals(LineIntersection.Type.INTERSECTING, isec.getType());
assertEquals(new Vec2D(50, 50), isec.getPos());
k = l.copy();
assertEquals(LineIntersection.Type.COINCIDENT, l.intersectLine(k)
.getType());
k = new Line2D(new Vec2D(110, 110), new Vec2D(220, 220));
assertEquals(LineIntersection.Type.COINCIDENT_NO_INTERSECT, l