/// <summary> /// Calc angle from position to to position via <code>Math.Atan2</code> /// </summary> /// <param name="fromX"></param> /// <param name="fromY"></param> /// <param name="toX"></param /// <param name="toY"></param> /// <see cref="Math.Atan2"/> /// <see cref="AngleUtils.AngleDegree"/> /// <returns>angle in degree</returns> public static double AngleDegree(double fromX, double fromY, double toX, double toY) { return(AngleUtils.AngleDegree(fromX, fromY, toX, toY)); }
/// <summary> /// Calc angle from position to to position via <code>Math.Atan2</code> /// </summary> /// <param name="from"></param> /// <param name="to"></param /// <see cref="Math.Atan2"/> /// <see cref="AngleUtils.AngleDegree"/> /// <returns>angle in degree</returns> public static double AngleDegree(Point from, Point to) { return(AngleUtils.AngleDegree(from.X, from.Y, to.X, to.Y)); }