Java com.google.common.geometry S2Polygon fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.geometry S2Polygon fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.geometry S2Polygon.

The text is from its open source code.

Constructor

S2Polygon()
Creates an empty polygon that should be initialized by calling Init().
S2Polygon(List loops)
Convenience constructor that calls Init() with the given loops.
S2Polygon(S2Loop loop)
Copy constructor.
S2Polygon(S2Polygon src)
Copy constructor.

Method

booleancontains(S2Polygon b)
Return true if this polygon contains the given other polygon, i.e.
booleancontains(S2Cell cell)
If this method returns true, the region completely contains the given cell.
booleancontains(S2Point p)
The point 'p' does not need to be normalized.
voidinitToIntersection(final S2Polygon a, final S2Polygon b)
Initialize this polygon to the intersection, union, or difference (A - B) of the given two polygons.
voidinitToUnion(final S2Polygon a, final S2Polygon b)
booleanintersects(S2Polygon b)
Return true if this polygon intersects the given other polygon, i.e.
booleanisValid(final List loops)
Return true if the given loops form a valid polygon.
S2Looploop(int k)
intnumLoops()