Package org.elasticsearch.geo
Class XShapeTestUtil
java.lang.Object
org.elasticsearch.geo.XShapeTestUtil
generates random cartesian geometry; heavy reuse of
GeoTestUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.geo.XYPolygon
createRegularPolygon
(double centerX, double centerY, double radius, int gons) Makes an n-gon, centered at the provided x/y, and each vertex approximately distanceMeters away from the center.static org.apache.lucene.geo.XYRectangle
nextBox()
static org.apache.lucene.geo.XYCircle
static double
static float
static org.apache.lucene.geo.XYPolygon
returns next pseudorandom polygon
-
Field Details
-
CENTER_SCALE_FACTOR
public static final float CENTER_SCALE_FACTOR- See Also:
-
-
Constructor Details
-
XShapeTestUtil
public XShapeTestUtil()
-
-
Method Details
-
nextPolygon
public static org.apache.lucene.geo.XYPolygon nextPolygon()returns next pseudorandom polygon -
nextBox
public static org.apache.lucene.geo.XYRectangle nextBox() -
createRegularPolygon
public static org.apache.lucene.geo.XYPolygon createRegularPolygon(double centerX, double centerY, double radius, int gons) Makes an n-gon, centered at the provided x/y, and each vertex approximately distanceMeters away from the center. Do not invoke me across the dateline or a pole!! -
nextDouble
public static double nextDouble() -
nextFloat
public static float nextFloat() -
nextCircle
public static org.apache.lucene.geo.XYCircle nextCircle()
-