degrees aren't radians

This commit is contained in:
Colin McMillen 2020-03-18 16:26:55 -04:00
parent 0bb6f22f3d
commit 8ca79a1875

View File

@ -29,12 +29,12 @@ namespace SemiColinGames {
return degToRad[degrees]; return degToRad[degrees];
} }
public static float Sin(double degrees) { public static float Sin(double radians) {
return (float) Math.Sin(degrees); return (float) Math.Sin(radians);
} }
public static float Cos(double degrees) { public static float Cos(double radians) {
return (float) Math.Cos(degrees); return (float) Math.Cos(radians);
} }
public static T Clamp<T>(T value, T min, T max) where T : IComparable { public static T Clamp<T>(T value, T min, T max) where T : IComparable {