public final class S2Polygon extends Object implements S2Region, Comparable<S2Polygon>
| Constructor and Description |
|---|
S2Polygon() |
S2Polygon(List<S2Loop> loops) |
S2Polygon(S2Loop loop) |
S2Polygon(S2Polygon src) |
public S2Polygon()
public S2Polygon(S2Loop loop)
public S2Polygon(S2Polygon src)
public int compareTo(S2Polygon other)
public int numLoops()
public S2Loop loop(int k)
public int getParent(int k)
public int getLastDescendant(int k)
public S2AreaCentroid getAreaAndCentroid()
public double getArea()
public S2Point getCentroid()
public boolean contains(S2Polygon b)
public boolean intersects(S2Polygon b)
public int getNumVertices()
public void initToIntersectionSloppy(S2Polygon a, S2Polygon b, S1Angle vertexMergeRadius)
public void initToUnionSloppy(S2Polygon a, S2Polygon b, S1Angle vertexMergeRadius)
public static S2Polygon destructiveUnionSloppy(List<S2Polygon> polygons, S1Angle vertexMergeRadius)
public boolean isNormalized()
public S2Cap getCapBound()
public S2LatLngRect getRectBound()
public boolean contains(S2Cell cell)
public boolean mayIntersect(S2Cell cell)
public boolean contains(S2Point p)
public String toString()
Copyright © 2017. All rights reserved.