diff -r c0da0eee163ba8323a552af0ae1964b1046859c9 -r 5a9d1b17f22818b553aac89dfe2670cfca417958 axios/Engine/Extensions/Double.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/axios/Engine/Extensions/Double.cs Sat Jun 23 17:23:39 2012 -0500 @@ -0,0 +1,22 @@ +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); + } + } +} diff -r c0da0eee163ba8323a552af0ae1964b1046859c9 -r 5a9d1b17f22818b553aac89dfe2670cfca417958 axios/Engine/Extensions/Texture2D.cs --- a/axios/Engine/Extensions/Texture2D.cs Sat Jun 16 17:30:09 2012 -0500 +++ b/axios/Engine/Extensions/Texture2D.cs Sat Jun 23 17:23:39 2012 -0500 @@ -23,6 +23,8 @@ /// A multidimensional array represting the rows/coulmns in the texture. public static Texture2D[,] Split(this Texture2D original, int partWidth, int partHeight, out int xCount, out int yCount) { + // This is buggy, there is an issue where it is out of bounds => r[curryidx, currxidx] = part; + // -- Nathan Adams [adamsna@datanethost.net] - 6/21/2012 yCount = original.Height / partHeight; //+ (partHeight % original.Height == 0 ? 0 : 1);//The number of textures in each horizontal row xCount = original.Width / partWidth; //+(partWidth % original.Width == 0 ? 0 : 1);//The number of textures in each vertical column Texture2D[,] r = new Texture2D[yCount,xCount];//Number of parts = (area of original) / (area of each part).