org.apache.lucene.geo

## Class XYPolygon2D

- java.lang.Object
- - org.apache.lucene.geo.EdgeTree
  - - org.apache.lucene.geo.Polygon2D
    - - org.apache.lucene.geo.XYPolygon2D

-     public class XYPolygon2D
      extends Polygon2D

  2D cartesian polygon implementation represented as a balanced interval tree of edges.
  NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.geo.Polygon2D

      `holes`

    - ### Fields inherited from class org.apache.lucene.geo.EdgeTree

      `left, maxLat, maxLon, maxX, maxY, minLat, minLon, right, splitX, tree`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `XYPolygon2D(XYPolygon polygon, XYPolygon2D holes)`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static XYPolygon2D` | `create(XYPolygon... polygons)` Builds a Polygon2D from multipolygon

    - ### Methods inherited from class org.apache.lucene.geo.Polygon2D

      `componentRelate, componentRelateTriangle, contains, create`

    - ### Methods inherited from class org.apache.lucene.geo.EdgeTree

      `createTree, internalComponentRelate, pointInTriangle, relate, relateTriangle`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XYPolygon2D

          protected XYPolygon2D(XYPolygon polygon,
                                XYPolygon2D holes)

  - ### Method Detail

    - #### create

          public static XYPolygon2D create(XYPolygon... polygons)

      Builds a Polygon2D from multipolygon

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.