S2Polygon.getDistance

Return the distance from the given point to the polygon interior. If the polygon is empty, return S1Angle::Infinity(). "x" should be unit length.

class S2Polygon
getDistance
()

Meta