
there is funtion in SimplifyTools.cs called DistancePointPoint. i think there is mistake in the forth line, it should be p2.Y.
private static double DistancePointPoint(Vector2 p, Vector2 p2)
{
double dx = p.X  p2.X;
double dy = p.Y  p2.X;
return Math.Sqrt(dx * dx + dy * dy);
}
Am I right?
private static double DistancePointPoint(Vector2 p, Vector2 p2)
{
double dx = p.X  p2.X;
double dy = p.Y  p2.X;
return Math.Sqrt(dx * dx + dy * dy);
}D



Oh, damn... that is one of mine. It is part of the RamerDouglasPeucker algorithm that I have
described here. Thanks for finding it!

