예제 #1
0
        static public double GetAngleBetweenTwoPoints(PointF p1, PointF p2)
        {
            double angleBetweenTwoPointsInRadians = Math.Atan2(Convert.ToDouble(p1.X - p2.X), Convert.ToDouble(p1.Y - p2.Y));

            return(HelperFunctions.ConvertRadiansToDegrees(angleBetweenTwoPointsInRadians));
        }