GitHubDashboard/FDG/Diagram.cs
/// <summary>
/// Calculates the bearing angle from one point to another.
/// </summary>
/// <param name="start">The node that the angle is measured from.</param>
/// <param name="end">The node that creates the angle.</param>
/// <returns>The bearing angle, in degrees.</returns>
Calculates the bearing angle from one point to another.
Calculates the bearing angle from one point to another .
private double GetBearingAngle(PointF start, PointF end)
		{
			double angle = 0;
			if (start != end)
			{
				angle = Math.Atan2(end.Y - start.Y, end.X - start.X);
				angle = angle * 360 / (2.0 * 3.1415);
			}
			else
			{
				angle = rnd.Next(360);
			}
			return angle;
		}
private double GetBearingAngle ( PointF start , PointF end ) { double angle = 0 ; if ( start != end ) { angle = Math . Atan2 ( end . Y - start . Y , end . X - start . X ) ; angle = angle * 360 / ( 2.0 * 3.1415 ) ; } else { angle = rnd . Next ( 360 ) ; } return angle ; }
Calculates the bearing angle from one point to another.
Calculates the bearing angle from one point to another .
The bearing angle, in degrees.
The bearing angle in degrees .
start
PointF
The node that the angle is measured from.
The node that the angle is measured from .
end
PointF
The node that creates the angle.
The node that creates the angle .