Retuns an
S1Angle whose angle is
(this + a).
Returns the cap radius as an S1Angle.
Returns a new
S1Angle copied from the current state of this builder.
Returns a new S1Angle converted from degrees.
Retuns an
S1Angle whose angle is
(this / d).
Returns a new S1Angle converted from tens of microdegrees.
Returns a new S1Angle converted from microdegrees.
Returns a new S1Angle converted from tenths of a microdegree.
Return the angle corresponding to the total arclength of the polyline on a unit sphere.
Returns the directed Hausdorff distance (measured along the surface of the sphere) to the given
S2LatLngRect.
Return the minimum distance from X to any point on the edge AB.
A slightly more efficient version of getDistance() where the cross product of the two endpoints
has been precomputed.
Return the distance (measured along the surface of the sphere) to the given point.
Returns the minimum distance (measured along the surface of the sphere) from a given point to
the rectangle (both its boundary and its interior).
Returns the minimum distance (measured along the surface of the sphere) to the given
S2LatLngRectBase.
Returns the shortest distance from a point P to this loop, given as the angle formed between P,
the origin and the nearest point on the loop to P.
Returns the shortest distance from a point P to this polygon, given as the angle formed between
P, the origin, and the nearest point on the polygon to P.
Returns the undirected Hausdorff distance (measured along the surface of the sphere) to the
given S2LatLngRect.
Returns the max distance between returned points and the given target.
If set to a positive value, all vertex pairs that are separated by less than this distance
will be merged together.
Returns robustness radius computed from mergeDistance and edgeSpliceFraction.
Returns the latitude of this point as a new S1Angle.
Returns the total length of all polylines in shapeIndex, or
S1Angle.ZERO if shapeIndex
contains no polylines.
Returns the longitude of this point as a new S1Angle.
Retuns an
S1Angle whose angle is
(this * m).
Returns the angle normalized to the range (-180, 180] degrees.
Returns the total perimeter of all polygons in shapeIndex (including both "shells" and
"holes"), or
S1Angle.ZERO shapeIndex contains no polygons.
Returns a new S1Angle specified in radians.
Retuns an
S1Angle whose angle is
(this - a).
Convert the chord angle to an
S1Angle.
Retuns an
S1Angle whose angle is
(this + a).
boolean
Returns true if this polygon (A) approximately contains the given other polygon (B).
int
Mutates the current rectangle to contain the convolution of this rectangle with a cap of the
given angle.
Returns a rectangle that contains the convolution of this rectangle with a cap of the given
angle.
void
Expand the cell union such that it contains all points whose distance to the cell union is at
most minRadius, but do not use cells that are more than maxLevelDiff levels higher than the
largest cell in the input.
Expands this rectangle so that it contains all points within the given distance of the
boundary, and return the smallest such rectangle.
Create a cap given its axis and the cap opening angle, i.e. maximum angle between the axis and
a point on the cap.
boolean
boolean
void
void
void
Initializes this polygon to a polygon that contains fewer vertices and is within tolerance of
the polygon a, with some caveats.
void
Initializes this polygon to a polygon that contains fewer vertices and is within tolerance of
the polygon a, while ensuring that the vertices on the cell boundary are preserved.
void
Similar to
S2Polygon.intersectWithPolyline(S2Polyline), except that vertices will be dropped as necessary to
ensure that all adjacent vertices in the sequence obtained by concatenating the output
polylines will be farther than
vertexMergeRadius apart.
boolean
boolean
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.
Create a circle of points with a given center, radius, and number of vertices.
S2FractalBuilder.makeVertices(com.google.common.geometry.Matrix3x3 frame,
S1Angle nominalRadius)
void
Sets a new max distance to search for points.
Sets the threshold angle at which to merge vertex pairs.
Sets mergeDistance computed from robustness radius and edge splice fraction.
Returns a simplified loop, which may be self-intersecting, or null if the entire loop was
within the tolerance.
Retuns an
S1Angle whose angle is
(this - a).
Return a subsequence of vertex indices such that the polyline connecting these vertices is
never further than "tolerance" from the original polyline.
Returns a polygon that is the union of the given polygons; combines vertices that form edges
that are almost identical, as defined by vertexMergeRadius.