public override double Distance(Point point)
{
// brute force approach!
var minDist = double.MaxValue;
foreach (var ls in LineStrings)
{
IList<Point> coord0 = ls.Vertices;
for (var i = 0; i < coord0.Count - 1; i++)
{
var dist = CGAlgorithms.DistancePointLine(point, coord0[i], coord0[i + 1]);
if (dist < minDist)
minDist = dist;
}
}
return minDist;
}