Geometry createSineStar(Coordinate origin, double size, int nPts) { SineStarFactory gsf = new SineStarFactory(); gsf.setCentre(origin); gsf.setSize(size); gsf.setNumPoints(nPts); gsf.setArmLengthRatio(0.1); gsf.setNumArms(20); Geometry poly = gsf.createSineStar(); return poly; }
Geometry createSineStar(Coordinate origin, double size, int nPts) { SineStarFactory gsf = new SineStarFactory(factory); gsf.setCentre(origin); gsf.setSize(size); gsf.setNumPoints(nPts); gsf.setArmLengthRatio(0.1); gsf.setNumArms(20); Geometry poly = gsf.createSineStar(); return poly; }
public Geometry createSineStar(int nPts) { SineStarFactory gsf = new SineStarFactory(); gsf.setCentre(origin); gsf.setSize(size); gsf.setNumPoints(nPts); gsf.setArmLengthRatio(0.1); gsf.setNumArms(20); Geometry poly = gsf.createSineStar(); return poly; }
public static Geometry createSineStar(Point p0, double radius, double armRatio, int nArms, int nPts) { SineStarFactory shape = new SineStarFactory(geomFactory); shape.setCentre(p0.getCoordinate()); shape.setSize(2 * radius); shape.setNumPoints(nPts); shape.setNumArms(nArms); shape.setArmLengthRatio(armRatio); return shape.createSineStar(); }