Package org.teavm.classlib.java.lang
Class TMath
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TMath
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic double
abs
(double n) static float
abs
(float n) static int
abs
(int n) static long
abs
(long n) static int
absExact
(int n) static long
absExact
(long n) static double
acos
(double a) static int
addExact
(int a, int b) static long
addExact
(long a, long b) static double
asin
(double a) static double
atan
(double a) static double
atan2
(double y, double x) static double
cbrt
(double a) static double
ceil
(double a) static int
ceilDiv
(int a, int b) static long
ceilDiv
(long a, int b) static long
ceilDiv
(long a, long b) static int
ceilDivExact
(int a, int b) static long
ceilDivExact
(long a, long b) static int
ceilMod
(int a, int b) static int
ceilMod
(long a, int b) static long
ceilMod
(long a, long b) static double
clamp
(double value, double min, double max) static float
clamp
(float value, float min, float max) static int
clamp
(long value, int min, int max) static long
clamp
(long value, long min, long max) static double
copySign
(double magnitude, double sign) static float
copySign
(float magnitude, float sign) static double
cos
(double a) static double
cosh
(double x) static int
decrementExact
(int a) static long
decrementExact
(long a) static int
divideExact
(int a, int b) static long
divideExact
(long a, long b) static double
exp
(double a) static double
expm1
(double x) static double
floor
(double a) static int
floorDiv
(int a, int b) static long
floorDiv
(long a, int b) static long
floorDiv
(long a, long b) static int
floorDivExact
(int a, int b) static long
floorDivExact
(long a, long b) static int
floorMod
(int a, int b) static int
floorMod
(long a, int b) static long
floorMod
(long a, long b) static int
getExponent
(double d) static int
getExponent
(float f) static double
hypot
(double x, double y) static double
IEEEremainder
(double f1, double f2) static int
incrementExact
(int a) static long
incrementExact
(long a) static double
log
(double a) static double
log10
(double a) static double
log1p
(double x) static double
max
(double a, double b) static float
max
(float a, float b) static int
max
(int a, int b) static long
max
(long a, long b) static double
min
(double a, double b) static float
min
(float a, float b) static int
min
(int a, int b) static long
min
(long a, long b) static int
multiplyExact
(int a, int b) static long
multiplyExact
(long a, int b) static long
multiplyExact
(long a, long b) static int
negateExact
(int a) static long
negateExact
(long a) static double
nextAfter
(double start, double direction) static float
nextAfter
(float start, double direction) static double
nextDown
(double d) static float
nextDown
(float d) static double
nextUp
(double d) static float
nextUp
(float d) static double
pow
(double x, double y) static double
random()
static double
rint
(double a) static long
round
(double a) static int
round
(float a) static double
signum
(double d) static float
signum
(float d) static double
sin
(double a) static double
sinh
(double x) static double
sqrt
(double a) static int
subtractExact
(int a, int b) static long
subtractExact
(long a, long b) static double
tan
(double a) static double
tanh
(double x) static double
toDegrees
(double angrad) static int
toIntExact
(long value) static double
toRadians
(double angdeg) static double
ulp
(double d) static float
ulp
(float d)
-
Field Details
-
E
public static final double E- See Also:
-
PI
public static final double PI- See Also:
-
TAU
public static final double TAU- See Also:
-
-
Method Details
-
sin
public static double sin(double a) -
cos
public static double cos(double a) -
tan
public static double tan(double a) -
asin
public static double asin(double a) -
acos
public static double acos(double a) -
atan
public static double atan(double a) -
toRadians
public static double toRadians(double angdeg) -
toDegrees
public static double toDegrees(double angrad) -
exp
public static double exp(double a) -
log
public static double log(double a) -
log10
public static double log10(double a) -
sqrt
public static double sqrt(double a) -
cbrt
public static double cbrt(double a) -
IEEEremainder
public static double IEEEremainder(double f1, double f2) -
ceil
public static double ceil(double a) -
floor
public static double floor(double a) -
pow
public static double pow(double x, double y) -
rint
public static double rint(double a) -
atan2
public static double atan2(double y, double x) -
round
public static int round(float a) -
round
public static long round(double a) -
floorDiv
public static int floorDiv(int a, int b) -
floorDivExact
public static int floorDivExact(int a, int b) -
floorDiv
public static long floorDiv(long a, int b) -
floorDiv
public static long floorDiv(long a, long b) -
floorDivExact
public static long floorDivExact(long a, long b) -
ceilDiv
public static int ceilDiv(int a, int b) -
ceilDivExact
public static int ceilDivExact(int a, int b) -
ceilDiv
public static long ceilDiv(long a, int b) -
ceilDiv
public static long ceilDiv(long a, long b) -
ceilDivExact
public static long ceilDivExact(long a, long b) -
floorMod
public static int floorMod(int a, int b) -
floorMod
public static int floorMod(long a, int b) -
floorMod
public static long floorMod(long a, long b) -
ceilMod
public static int ceilMod(int a, int b) -
ceilMod
public static int ceilMod(long a, int b) -
ceilMod
public static long ceilMod(long a, long b) -
incrementExact
public static int incrementExact(int a) -
incrementExact
public static long incrementExact(long a) -
decrementExact
public static int decrementExact(int a) -
decrementExact
public static long decrementExact(long a) -
negateExact
public static int negateExact(int a) -
negateExact
public static long negateExact(long a) -
toIntExact
public static int toIntExact(long value) -
addExact
public static int addExact(int a, int b) -
addExact
public static long addExact(long a, long b) -
subtractExact
public static int subtractExact(int a, int b) -
subtractExact
public static long subtractExact(long a, long b) -
multiplyExact
public static int multiplyExact(int a, int b) -
multiplyExact
public static long multiplyExact(long a, int b) -
multiplyExact
public static long multiplyExact(long a, long b) -
divideExact
public static int divideExact(int a, int b) -
divideExact
public static long divideExact(long a, long b) -
random
public static double random() -
min
public static int min(int a, int b) -
max
public static int max(int a, int b) -
min
public static long min(long a, long b) -
max
public static long max(long a, long b) -
min
public static double min(double a, double b) -
max
public static double max(double a, double b) -
min
public static float min(float a, float b) -
max
public static float max(float a, float b) -
abs
public static int abs(int n) -
absExact
public static int absExact(int n) -
abs
public static long abs(long n) -
absExact
public static long absExact(long n) -
abs
public static float abs(float n) -
abs
public static double abs(double n) -
ulp
public static double ulp(double d) -
ulp
public static float ulp(float d) -
signum
public static double signum(double d) -
signum
public static float signum(float d) -
sinh
public static double sinh(double x) -
cosh
public static double cosh(double x) -
tanh
public static double tanh(double x) -
hypot
public static double hypot(double x, double y) -
expm1
public static double expm1(double x) -
log1p
public static double log1p(double x) -
copySign
public static float copySign(float magnitude, float sign) -
copySign
public static double copySign(double magnitude, double sign) -
getExponent
public static int getExponent(double d) -
getExponent
public static int getExponent(float f) -
nextAfter
public static double nextAfter(double start, double direction) -
nextAfter
public static float nextAfter(float start, double direction) -
nextUp
public static double nextUp(double d) -
nextUp
public static float nextUp(float d) -
nextDown
public static double nextDown(double d) -
nextDown
public static float nextDown(float d) -
clamp
public static int clamp(long value, int min, int max) -
clamp
public static long clamp(long value, long min, long max) -
clamp
public static double clamp(double value, double min, double max) -
clamp
public static float clamp(float value, float min, float max)
-