public static double Distance2D(this AForge.Point one, AForge.Point two) { return Distance2D(new Point((int) one.X, (int) one.Y), new Point((int) two.X, (int) two.Y)); }