To Radians - CSharp System

CSharp examples for System:Math Geometry

Description

To Radians

Demo Code


using Microsoft.Xna.Framework;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from  www. ja  v a 2  s.com

public class Main{
        public static float ToRadians(float degrees)
        {
            return degrees * (float)Math.PI / 180;
        }
}

Related Tutorials