mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Correct the calculation in Math.hypot().
This commit is contained in:
parent
e569eaa8a6
commit
28212f70ff
|
@ -219,7 +219,7 @@ public final class TMath extends TObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double hypot(double x, double y) {
|
public static double hypot(double x, double y) {
|
||||||
return x * x + y * y;
|
return sqrt(x * x + y * y);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double expm1(double x) {
|
public static double expm1(double x) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user