elemental2.core.JsMath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-core Show documentation
Show all versions of elemental2-core Show documentation
Thin Java abstractions for the standard built-in objects for Javascript.
package elemental2.core;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, name = "Math", namespace = JsPackage.GLOBAL)
public class JsMath {
@JsOverlay public static final double E = Math__Constants.E;
@JsOverlay public static final double LN10 = Math__Constants.LN10;
@JsOverlay public static final double LN2 = Math__Constants.LN2;
@JsOverlay public static final double LOG10E = Math__Constants.LOG10E;
@JsOverlay public static final double LOG2E = Math__Constants.LOG2E;
@JsOverlay public static final double PI = Math__Constants.PI;
@JsOverlay public static final double SQRT1_2 = Math__Constants.SQRT1_2;
@JsOverlay public static final double SQRT2 = Math__Constants.SQRT2;
public static native double abs(Object x);
public static native double acos(Object x);
public static native double acosh(double value);
public static native double asin(Object x);
public static native double asinh(double value);
public static native double atan(Object x);
public static native double atan2(Object y, Object x);
public static native double atanh(double value);
public static native double cbrt(double value);
public static native int ceil(Object x);
public static native int clz32(int value);
public static native double cos(Object x);
public static native double cosh(double value);
public static native double exp(Object x);
public static native double expm1(double value);
public static native int floor(Object x);
public static native double fround(double value);
public static native double hypot(double... var_args);
public static native double imul(double value1, double value2);
public static native double log(Object x);
public static native double log10(double value);
public static native double log1p(double value);
public static native double log2(double value);
public static native double max(Object... var_args);
public static native double min(Object... var_args);
public static native double pow(Object x, Object y);
public static native double random();
public static native int round(Object x);
public static native double sign(double value);
public static native double sin(Object x);
public static native double sinh(double value);
public static native double sqrt(Object x);
public static native double tan(Object x);
public static native double tanh(double value);
public static native String toSource();
public static native int trunc(double value);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy