S2ClosestPointQuery.getDistance

Returns the minimum distance to the target. If the index or target is empty, returns S1ChordAngle::Infinity().

Use IsDistanceLess() if you only want to compare the distance against a threshold value, since it is often much faster.

class S2ClosestPointQuery(Data)
getDistance

Meta