Java 类com.vividsolutions.jts.geom.util.SineStarFactory 实例源码

项目:jts    文件:PreparedPolygonIntersectsStressTest.java   
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;
}
项目:jts    文件:StressTestHarness.java   
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;
}
项目:jts    文件:PreparedGeometryThreadSafeTest.java   
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;
}
项目:jts    文件:TestDataBuilder.java   
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;
}
项目:jeql    文件:GeomFunction.java   
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();
}