Specifies that only points whose distance to the target is less than "max_distance" should be returned.
Specifies that points up to max_error() further away than the true closest points may be substituted in the result set, as long as such points satisfy all the remaining search criteria (such as max_distance). This option only has an effect if max_points() is also specified; otherwise all points closer than max_distance() will always be returned.
Specifies that at most "max_points" points should be returned.
Specifies that points must be contained by the given S2Region. "region" is owned by the caller and must persist during the lifetime of this object. The value may be changed between calls to FindClosestPoints(), or reset by calling set_region(nullptr).
Specifies that distances should be computed by examining every point rather than using the S2ShapeIndex. This is useful for testing, benchmarking, and debugging.
Options that control the set of points returned. Note that by default *all* points are returned, so you will always want to set either the max_points() option or the max_distance() option (or both).
This class is also available as S2ClosestPointQueryBase<Data>::Options. (It is defined here to avoid depending on the "Data" template argument.)
The Distance template argument is described below.