I am trying to make sense of the Google S2 library for spherical math (it works like this). I need to get a rectangle for searching for nearby entities in a database, based on a point and a distance (say, 10km, the distances do not have to be exact, I filter the entities later).
In the S2 library there is a function with the signature:
RectFromCenterSize(center, size LatLng)
Both parameters are latitude/longitude pairs.
I am having difficulty understanding what this means (the documentation is unfortunately very poor). The center point I get, but how does the a lat/lng pair specify the size?
Any help would be greatly appreciated.