use of com.revolsys.geometry.model.util.SineStarFactory in project com.revolsys.open by revolsys.
the class PreparedPolygonIntersectsStressTest method newSineStar.
Geometry newSineStar(final Point origin, final double size, final int nPts) {
final SineStarFactory gsf = new SineStarFactory();
gsf.setCentre(origin);
gsf.setSize(size);
gsf.setNumPoints(nPts);
gsf.setArmLengthRatio(0.1);
gsf.setNumArms(20);
final Geometry poly = gsf.newSineStar();
return poly;
}
use of com.revolsys.geometry.model.util.SineStarFactory in project com.revolsys.open by revolsys.
the class TestPerfDistanceGeomPair method newSineStars.
Geometry[] newSineStars(final int nPts) {
final SineStarFactory gsf = new SineStarFactory();
gsf.setCentre(new PointDoubleXY(0, 0));
gsf.setSize(100);
gsf.setNumPoints(nPts);
final Geometry g = gsf.newSineStar().getBoundary();
gsf.setCentre(new PointDoubleXY(0, this.separationDist));
final Geometry g2 = gsf.newSineStar().getBoundary();
return new Geometry[] { g, g2 };
}
use of com.revolsys.geometry.model.util.SineStarFactory in project com.revolsys.open by revolsys.
the class TestDataBuilder method newSineStar.
public Geometry newSineStar(final int nPts) {
final SineStarFactory gsf = new SineStarFactory();
gsf.setCentre(this.origin);
gsf.setSize(this.size);
gsf.setNumPoints(nPts);
gsf.setArmLengthRatio(0.1);
gsf.setNumArms(20);
final Geometry poly = gsf.newSineStar();
return poly;
}
use of com.revolsys.geometry.model.util.SineStarFactory in project com.revolsys.open by revolsys.
the class PreparedPolygonIntersectsPerfTest method newSineStar.
Geometry newSineStar(final Point origin, final double size, final int nPts) {
final SineStarFactory gsf = new SineStarFactory();
gsf.setCentre(origin);
gsf.setSize(size);
gsf.setNumPoints(nPts);
gsf.setArmLengthRatio(0.1);
gsf.setNumArms(50);
final Geometry poly = gsf.newSineStar();
return poly;
}
use of com.revolsys.geometry.model.util.SineStarFactory in project com.revolsys.open by revolsys.
the class TestPerfDistanceGeomSet method newCircleRandomLocation.
Geometry newCircleRandomLocation(final int nPts) {
final SineStarFactory gsf = new SineStarFactory();
gsf.setCentre(randomLocation());
gsf.setSize(GEOM_SIZE);
gsf.setNumPoints(nPts);
final Polygon g = gsf.newCircle();
return g;
}
Aggregations