S2ClosestPointQueryOptions.setMaxDistance

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. Normally this doesn't matter, because distances are not computed exactly in the first place, but if such points are needed then see set_inclusive_max_distance() below.

DEFAULT: Distance::Infinity()

  1. void setMaxDistance(S1ChordAngle max_distance)
    class S2ClosestPointQueryOptions
    void
    setMaxDistance
  2. alias setMaxDistance = Base.setMaxDistance
  3. void setMaxDistance(S1Angle max_distance)

Meta