S2DistanceTarget.setMaxError

Specifies that whenever one of the UpdateMinDistance() methods above returns "true", the returned distance is allowed to be up to "max_error" larger than the true minimum distance. In other words, it gives this target object permission to terminate its distance calculation as soon as it has determined that (1) the minimum distance is less than "min_dist" and (2) the best possible further improvement is less than "max_error".

If the target takes advantage of "max_error" to optimize its distance calculation, this method must return "true". (Most target types can use the default implementation which simply returns false.)

class S2DistanceTarget(DistanceT)
bool
setMaxError

Meta