GitHubDashboard/FDG/Diagram.cs
/// <summary>
/// Calculates the distance between two points.
/// </summary>
/// <param name="a">The first point.</param>
/// <param name="b">The second point.</param>
/// <returns>The pixel distance between the two points.</returns>
Calculates the distance between two points.
Calculates the distance between two points .
public static double CalcDistance(PointF a, PointF b)
		{
			double xDist = (a.X - b.X);
			double yDist = (a.Y - b.Y);
			return Math.Sqrt(Math.Pow(xDist, 2) + Math.Pow(yDist, 2));
		}
public static double CalcDistance ( PointF a , PointF b ) { double xDist = ( a . X - b . X ) ; double yDist = ( a . Y - b . Y ) ; return Math . Sqrt ( Math . Pow ( xDist , 2 ) + Math . Pow ( yDist , 2 ) ) ; }
Calculates the distance between two points.
Calculates the distance between two points .
The pixel distance between the two points.
The pixel distance between the two points .
a
PointF
The first point.
The first point .
b
PointF
The second point.
The second point .