degrees aren't radians
This commit is contained in:
parent
0bb6f22f3d
commit
8ca79a1875
@ -29,12 +29,12 @@ namespace SemiColinGames {
|
||||
return degToRad[degrees];
|
||||
}
|
||||
|
||||
public static float Sin(double degrees) {
|
||||
return (float) Math.Sin(degrees);
|
||||
public static float Sin(double radians) {
|
||||
return (float) Math.Sin(radians);
|
||||
}
|
||||
|
||||
public static float Cos(double degrees) {
|
||||
return (float) Math.Cos(degrees);
|
||||
public static float Cos(double radians) {
|
||||
return (float) Math.Cos(radians);
|
||||
}
|
||||
|
||||
public static T Clamp<T>(T value, T min, T max) where T : IComparable {
|
||||
|
Loading…
Reference in New Issue
Block a user