# Google's S2 Library for Geometry on the Sphere

## Documentation for package ‘s2’ version 0.3-0

- DESCRIPTION file.

## Help Pages

s2-package | s2: Google's S2 Library for Geometry on the Sphere
s2 | s2: Google's S2 Library for Geometry on the Sphere
S2CapFromAxisHeight | Construct a S2Cap using axis and height
S2Cap_area | Area of s2cap
S2Cap_Contains | Test of Containment in S2Cap
S2Cap_GetRectBound | Bounding latitude and longitude rectangle for spherical cap
S2Cell | Make a list of S2Cells
S2CellIdFromPoint | Make a Vector of S2CellIds From Points on the Sphere
S2CellId_ToPoint | Convert S2CellId to a S2Point
S2CellId_ToString | Make a vector of S2CellId strings
S2Covering | Approximate a Region on the Sphere by a Covering of S2Cells
S2LatLngRect | Create a rectangle of latitude and longitude on the sphere
S2LatLngRect_area | Area of s2latlngrect
S2Point_interpolate | Interpolation of points on unit sphere
S2Polygon | Construct a S2Polygon
S2Polygons_area | compute areas for a list of s2polygons
S2Polygons_centroid | compute centroids for a list of s2polygons
S2Polygons_intersect | for two sets of s2polygons, which ones intersect?
S2Polygons_intersection | intersection of sets of s2polygons
S2Polygon_Contains | Test of Containment in S2Polygon
S2Polygon_intersection | Union and intersection of two s2polygons
S2Polygon_union | Union and intersection of two s2polygons
S2Polyline_dist | Distance from points to line on sphere