S2 is a library for spherical geometry that aims to have the same robustness, flexibility, and performance as the best planar geometry libraries. This is a library for manipulating geometric shapes. Unlike many geometry libraries, S2 is primarily designed to work with spherical geometry, i.e., shapes drawn on a sphere rather than on a planar 2D map. (In fact, the name S2 is derived from the mathem