axiosengine/axios/Engine/Extensions/Double.cs
Nathan Adams db369a362d Adding double extension
Adding Texture2D comments
2012-06-23 17:23:39 -05:00

23 lines
572 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Axios.Engine.Extensions
{
public static class AxiosExtension_Double
{
//http://www.vcskicks.com/csharp_net_angles.php
public static double DegreeToRadian(this double angle)
{
return Math.PI * angle / 180.0;
}
//http://www.vcskicks.com/csharp_net_angles.php
public static double RadianToDegree(double angle)
{
return angle * (180.0 / Math.PI);
}
}
}