Example usage for Java com.google.common.geometry S2Polygon fields, constructors, methods, implement or subclass
The text is from its open source code.
S2Polygon() Creates an empty polygon that should be initialized by calling Init(). | |
S2Polygon(List Convenience constructor that calls Init() with the given loops. | |
S2Polygon(S2Loop loop) Copy constructor. | |
S2Polygon(S2Polygon src) Copy constructor. |
boolean | contains(S2Polygon b) Return true if this polygon contains the given other polygon, i.e. |
boolean | contains(S2Cell cell) If this method returns true, the region completely contains the given cell. |
boolean | contains(S2Point p) The point 'p' does not need to be normalized. |
void | initToIntersection(final S2Polygon a, final S2Polygon b) Initialize this polygon to the intersection, union, or difference (A - B) of the given two polygons. |
void | initToUnion(final S2Polygon a, final S2Polygon b) |
boolean | intersects(S2Polygon b) Return true if this polygon intersects the given other polygon, i.e. |
boolean | isValid(final List Return true if the given loops form a valid polygon. |
S2Loop | loop(int k) |
int | numLoops() |