Package com.vividsolutions.jts.geom.util

Examples of com.vividsolutions.jts.geom.util.SineStarFactory


    // Geometry g = gRect.getExteriorRing();
    return circle;
  }
 
  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;
  }
View Full Code Here


    // Geometry g = gRect.getExteriorRing();
    return circle;
  }
 
  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;
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.util.SineStarFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.