use of net.sf.latexdraw.model.api.shape.Circle in project latexdraw by arnobl.
the class TestParsingPscircle method testParse2CoordinatesFloat2.
@Test
public void testParse2CoordinatesFloat2() {
parser("\\pscircle(35.5,50.5){1.25}");
final Circle cir = getShapeAt(0);
assertEquals(35.5 * Shape.PPC - 1.25 * Shape.PPC, cir.getPosition().getX(), 0.001);
assertEquals((50.5 * Shape.PPC - 1.25 * Shape.PPC) * -1d, cir.getPosition().getY(), 0.001);
assertEquals(1.25 * Shape.PPC * 2d, cir.getWidth(), 0.0000001);
assertEquals(1.25 * Shape.PPC * 2d, cir.getHeight(), 0.0000001);
}
Aggregations