degrees aren't radians
This commit is contained in:
parent
0bb6f22f3d
commit
8ca79a1875
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user