S2ClosestPointQuery.isConservativeDistanceLessOrEqual

Like IsDistanceLessOrEqual(), except that "limit" is increased by the maximum error in the distance calculation. This ensures that this function returns true whenever the true, exact distance is less than or equal to "limit".

For example, suppose that we want to test whether two geometries might intersect each other after they are snapped together using S2Builder (using the IdentitySnapFunction with a given "snap_radius"). Since S2Builder uses exact distance predicates (s2predicates.h), we need to measure the distance between the two geometries conservatively. If the distance is definitely greater than "snap_radius", then the geometries are guaranteed to not intersect after snapping.

class S2ClosestPointQuery(Data)
bool
isConservativeDistanceLessOrEqual

Meta