using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rs.Framework
{
///
/// 弧度&角度转换
///
public static class AngleTool
{
///
/// 度转弧度 2*3.14=360 PI=180 PI/180 * DEG
///
///
///
public static double Deg2Rad(double deg)
{
return Math.PI / 180 * deg;
}
///
/// 弧度转度 2*3.14=360 PI=180 180/PI*rad
///
///
///
public static double Rad2Deg(double rad)
{
return 180/Math.PI* rad;
}
}
}