
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


Coordinator
Nov 20, 2012 at 7:26 PM

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

