Function S2Cap.expanded

Returns a cap that contains all points within a given distance of this cap. Note that any expansion of the empty cap is still empty.

S2Cap expanded (
  S1Angle distance
) const;