AStarCollisionMap.PathfindingUtil.GetHypoteneuseAngleDegrees C# (CSharp) 메소드

GetHypoteneuseAngleDegrees() 공개 정적인 메소드

Gets the angle of the hypoteneuse with the X-axis between two points.
public static GetHypoteneuseAngleDegrees ( Point p1, Point p2 ) : float
p1 Point Point one
p2 Point Point two
리턴 float
        public static float GetHypoteneuseAngleDegrees(Point p1, Point p2)
        {
            return (float)(PathfindingUtil.GetHypoteneuseAngleRad(p1, p2) * 180 / Math.PI);
        }