S2ClosestPointQueryBaseOptions.maxDistance

Specifies that only points whose distance to the target is less than "max_distance" should be returned.

Note that points whose distance is exactly equal to "max_distance" are not returned. In most cases this doesn't matter (since distances are not computed exactly in the first place), but if such points are needed then you can retrieve them by specifying "max_distance" as the next largest representable Distance. For example, if Distance is an S1ChordAngle then you can specify max_distance.Successor().

DEFAULT: Distance::Infinity()

class S2ClosestPointQueryBaseOptions(Distance)
const
Distance
maxDistance
()

Meta