-
Returns a new loop with one vertex that defines an empty loop (i.e., a loop with no edges that
contains no points.)
Returns a new loop with one vertex that creates a full loop (i.e., a loop with no edges that
contains all points).
Computes the convex hull of the input geometry provided.
Returns the loop at the given index.
S2FractalBuilder.makeLoop(com.google.common.geometry.Matrix3x3 frame,
S1Angle nominalRadius)
Returns a fractal loop centered around the a-axis of the given coordinate frame, with the first
vertex in the direction of the positive x-axis, and the given nominal radius.
As above, but does not CHECK-fail on invalid input.
Given a string of latitude-longitude coordinates in degrees, returns a newly allocated loop.
Create a circle of points with a given center, radius, and number of vertices.
Fast/unsafe loop initialization.
Returns a simplified loop, which may be self-intersecting, or null if the entire loop was
within the tolerance.
Returns a loop along the boundary of this cell, with vertices at intersections with the cell
grid at level.
Returns a view of the list of
S2Loops that make up this S2Polygon.
void
Adds a loop to the input geometry.
void
Adds all edges in the given loop.
int
Returns +1 if A contains the boundary of B, -1 if A excludes the boundary of B, and 0 if the
boundaries of A and B cross.
int
Comparator (needed by Comparable interface)
boolean
Return true if the region contained by this loop is a superset of the region contained by the
given other loop.
boolean
Given two loops of a polygon, return true if A contains B.
boolean
Return true if the region contained by this loop intersects the region contained by the given
other loop.
Convert an S2Loop to the S2TextFormat string representation documented above.
boolean
Assembles the given edges into as many non-crossing loops as possible.
void
void
Initializes this polygon from a set of hierarchically nested loops.
void
Like
S2Polygon.initNested(List), but expects loops to be oriented such that the polygon interior
is on the left-hand side of all loops.
void
Initializes a polygon from a set of
S2Loops.
void
Initializes a polygon from a set of
S2Loops.
static boolean
Returns true if the given loops form a valid polygon, including checking whether the loops
themselves are valid.
void
Appends the loops of this polygon to the given list and resets this polygon to be empty.