use of net.sf.latexdraw.models.interfaces.shape.ILine in project latexdraw by arnobl.
the class TestILine method testGetIntersectionVert.
@Test
public void testGetIntersectionVert() {
ILine line2 = ShapeFactory.INST.createLine(0, 0, 1, 0);
line.setLine(0, -10, 0, 10);
line.updateAandB();
IPoint pt = line.getIntersection(line2);
assertNotNull(pt);
assertEqualsDouble(0d, pt.getX());
assertEqualsDouble(0d, pt.getY());
}
Aggregations