3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Fix MathUtils.dSin

Dieser Commit ist enthalten in:
FrozenBrain 2016-05-19 19:29:15 +02:00 committet von wizjany
Ursprung 4a7683d5bf
Commit 85d4b9f4ec

Datei anzeigen

@ -78,7 +78,7 @@ public final class MathUtils {
/**
* Returns the sine of an angle given in degrees. This is better than just
* {@code Math.cos(Math.toRadians(degrees))} because it provides a more
* {@code Math.sin(Math.toRadians(degrees))} because it provides a more
* accurate result for angles divisible by 90 degrees.
*
* @param degrees the angle
@ -102,7 +102,7 @@ public final class MathUtils {
return -1.0;
}
}
return Math.cos(Math.toRadians(degrees));
return Math.sin(Math.toRadians(degrees));
}
}