S2ClosestPointQueryBaseOptions.region

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).

Note that if you want to set the region to a disc around the target point, it is faster to use set_max_distance() instead. You can also call both methods, e.g. to set a maximum distance and also require that points lie within a given rectangle.

class S2ClosestPointQueryBaseOptions(Distance)
inout
inout(S2Region)
region
()

Meta