/// <summary> /// Returns the distance between two points. /// </summary> /// <param name="value1">The first point.</param> /// <param name="value2">The second point.</param> /// <returns>The distance between value1 and value2.</returns> public static double Distance(Point2d value1, Point2d value2) { return(Vector.Absolute(value2 - value1)); }
/// <summary> /// Returns the distance between two points. /// </summary> /// <param name="value1">The first point.</param> /// <param name="value2">The second point.</param> /// <returns>The distance between value1 and value2.</returns> public static float Distance(Point3f value1, Point3f value2) { return(Vector.Absolute(value2 - value1)); }