Mapsui.Geometries.Polygon.Distance C# (CSharp) Method

Distance() public method

Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.
public Distance ( System.Point point ) : double
point System.Point
return double
        public override double Distance(Point point)
        {
            if (Contains(point)) return 0;

            return Algorithms.DistanceToLine(point, ExteriorRing.Vertices);
        }