Terraria.Entity.AngleTo C# (CSharp) Method

AngleTo() public method

public AngleTo ( Vector2 Destination ) : float
Destination Vector2
return float
        public float AngleTo(Vector2 Destination)
        {
            return (float)Math.Atan2(Destination.Y - (double)Center.Y, Destination.X - (double)Center.X);
        }