use of net.sf.latexdraw.model.api.shape.BezierCurve in project latexdraw by arnobl.
the class TestShapeFactory method testCreateBezierCurveFromSameNbPoints.
@Test
void testCreateBezierCurveFromSameNbPoints() {
BezierCurve bc = ShapeFactory.INST.createBezierCurve(Collections.singletonList(ShapeFactory.INST.createPoint()));
bc = ShapeFactory.INST.createBezierCurveFrom(bc, ShapeFactory.INST.createPoint(1d, 2d));
assertEquals(bc.getNbPoints(), bc.getFirstCtrlPts().size());
}
Aggregations