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 doubleabs(double n) static floatabs(float n) static intabs(int n) static longabs(long n) static doubleacos(double a) static doubleasin(double a) static doubleatan(double a) static doubleatan2(double y, double x) static doublecbrt(double a) static doubleceil(double a) static doubleclamp(double value, double min, double max) static floatclamp(float value, float min, float max) static intclamp(long value, int min, int max) static longclamp(long value, long min, long max) static doublecopySign(double magnitude, double sign) static floatcopySign(float magnitude, float sign) static doublecos(double a) static doublecosh(double x) static doubleexp(double a) static doubleexpm1(double x) static doublefloor(double a) static intfloorDiv(int a, int b) static longfloorDiv(long a, int b) static longfloorDiv(long a, long b) static intfloorMod(int a, int b) static intfloorMod(long a, int b) static longfloorMod(long a, long b) static intgetExponent(double d) static intgetExponent(float f) static doublehypot(double x, double y) static doubleIEEEremainder(double f1, double f2) static doublelog(double a) static doublelog10(double a) static doublelog1p(double x) static doublemax(double a, double b) static floatmax(float a, float b) static intmax(int a, int b) static longmax(long a, long b) static doublemin(double a, double b) static floatmin(float a, float b) static intmin(int a, int b) static longmin(long a, long b) static doublenextAfter(double start, double direction) static floatnextAfter(float start, double direction) static doublenextDown(double d) static floatnextDown(float d) static doublenextUp(double d) static floatnextUp(float d) static doublepow(double x, double y) static doublerandom()static doublerint(double a) static longround(double a) static intround(float a) static doublesignum(double d) static floatsignum(float d) static doublesin(double a) static doublesinh(double x) static doublesqrt(double a) static doubletan(double a) static doubletanh(double x) static doubletoDegrees(double angrad) static doubletoRadians(double angdeg) static doubleulp(double d) static floatulp(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) -
floorDiv
public static long floorDiv(long a, int b) -
floorDiv
public static long floorDiv(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) -
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) -
abs
public static long abs(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)
-