S2ClosestPointQueryOptions.setConservativeMaxDistance

Like set_inclusive_max_distance(), except that "max_distance" is also increased by the maximum error in the distance calculation. This ensures that all points whose true distance is less than or equal to "max_distance" will be returned (along with some points whose true distance is slightly greater).

Algorithms that need to do exact distance comparisons can use this option to find a set of candidate points that can then be filtered further (e.g., using s2pred::CompareDistance).

  1. void setConservativeMaxDistance(S1ChordAngle max_distance)
    class S2ClosestPointQueryOptions
    void
    setConservativeMaxDistance
  2. void setConservativeMaxDistance(S1Angle max_distance)

Meta