Microsoft.Xna.Framework.MathHelper.ToDegrees C# (CSharp) Method

ToDegrees() public static method

public static ToDegrees ( float radians ) : float
radians float
return float
        public static float ToDegrees(float radians)
        {
            return radians * 57.2957764f;
        }
        public static float Distance(float value1, float value2)

Usage Example

Example #1
0
        /// <summary>
        ///     Rotates the loading wheel endlessly
        /// </summary>
        private void PerformLoadingWheelRotation()
        {
            if (LoadingWheel.Animations.Count != 0)
            {
                return;
            }

            var rotation = MathHelper.ToDegrees(LoadingWheel.Rotation);

            LoadingWheel.ClearAnimations();
            LoadingWheel.Animations.Add(new Animation(AnimationProperty.Rotation, Easing.Linear, rotation, rotation + 360, 1000));
        }
All Usage Examples Of Microsoft.Xna.Framework.MathHelper::ToDegrees