Class XShapeTestUtil

java.lang.Object
org.elasticsearch.geo.XShapeTestUtil

public class XShapeTestUtil extends Object
generates random cartesian geometry; heavy reuse of GeoTestUtil
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static org.apache.lucene.geo.XYRectangle
     
    static org.apache.lucene.geo.XYCircle
     
    static double
     
    static float
     
    static org.apache.lucene.geo.XYPolygon
    returns next pseudorandom polygon

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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()