Beispiel #1
0
        internal static float AngleHorizontal(WowProcess process, WowPoint point)
        {
            WoWPlayerMe me    = ObjectMgr.Pulse(process);
            var         angle = Convert.ToSingle(Math.Atan2(Convert.ToDouble(point.Y) - Convert.ToDouble(me.Location.Y), Convert.ToDouble(point.X) - Convert.ToDouble(me.Location.X)));

            angle = NegativeAngle(angle);
            return(angle);
        }