Class JsMath

java.lang.Object
elemental2.core.JsMath

@JsType(isNative=true, name="Math", namespace="<global>") public class JsMath extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    abs(@Nullable Object x)
     
    static double
    acos(@Nullable Object x)
     
    static double
    acosh(double value)
     
    static double
    asin(@Nullable Object x)
     
    static double
    asinh(double value)
     
    static double
    atan(@Nullable Object x)
     
    static double
    atan2(@Nullable Object y, @Nullable Object x)
     
    static double
    atanh(double value)
     
    static double
    cbrt(double value)
     
    static int
    ceil(@Nullable Object x)
     
    static int
    clz32(int value)
     
    static double
    cos(@Nullable Object x)
     
    static double
    cosh(double value)
     
    static double
    exp(@Nullable Object x)
     
    static double
    expm1(double value)
     
    static int
    floor(@Nullable Object x)
     
    static double
    fround(double value)
     
    static double
    hypot(double... var_args)
     
    static double
    imul(double value1, double value2)
     
    static double
    log(@Nullable Object x)
     
    static double
    log10(double value)
     
    static double
    log1p(double value)
     
    static double
    log2(double value)
     
    static double
    max(@Nullable Object... var_args)
     
    static double
    min(@Nullable Object... var_args)
     
    static double
    pow(@Nullable Object x, @Nullable Object y)
     
    static double
     
    static int
    round(@Nullable Object x)
     
    static double
    sign(double value)
     
    static double
    sin(@Nullable Object x)
     
    static double
    sinh(double value)
     
    static double
    sqrt(@Nullable Object x)
     
    static double
    tan(@Nullable Object x)
     
    static double
    tanh(double value)
     
    static String
     
    static int
    trunc(double value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • E

      @JsOverlay public static final double E
    • LN10

      @JsOverlay public static final double LN10
    • LN2

      @JsOverlay public static final double LN2
    • LOG10E

      @JsOverlay public static final double LOG10E
    • LOG2E

      @JsOverlay public static final double LOG2E
    • PI

      @JsOverlay public static final double PI
    • SQRT1_2

      @JsOverlay public static final double SQRT1_2
    • SQRT2

      @JsOverlay public static final double SQRT2
  • Constructor Details

    • JsMath

      public JsMath()
  • Method Details

    • abs

      public static double abs(@Nullable Object x)
    • acos

      public static double acos(@Nullable Object x)
    • acosh

      public static double acosh(double value)
    • asin

      public static double asin(@Nullable Object x)
    • asinh

      public static double asinh(double value)
    • atan

      public static double atan(@Nullable Object x)
    • atan2

      public static double atan2(@Nullable Object y, @Nullable Object x)
    • atanh

      public static double atanh(double value)
    • cbrt

      public static double cbrt(double value)
    • ceil

      public static int ceil(@Nullable Object x)
    • clz32

      public static int clz32(int value)
    • cos

      public static double cos(@Nullable Object x)
    • cosh

      public static double cosh(double value)
    • exp

      public static double exp(@Nullable Object x)
    • expm1

      public static double expm1(double value)
    • floor

      public static int floor(@Nullable Object x)
    • fround

      public static double fround(double value)
    • hypot

      public static double hypot(double... var_args)
    • imul

      public static double imul(double value1, double value2)
    • log

      public static double log(@Nullable Object x)
    • log10

      public static double log10(double value)
    • log1p

      public static double log1p(double value)
    • log2

      public static double log2(double value)
    • max

      public static double max(@Nullable Object... var_args)
    • min

      public static double min(@Nullable Object... var_args)
    • pow

      public static double pow(@Nullable Object x, @Nullable Object y)
    • random

      public static double random()
    • round

      public static int round(@Nullable Object x)
    • sign

      public static double sign(double value)
    • sin

      public static double sin(@Nullable Object x)
    • sinh

      public static double sinh(double value)
    • sqrt

      public static double sqrt(@Nullable Object x)
    • tan

      public static double tan(@Nullable Object x)
    • tanh

      public static double tanh(double value)
    • toSource

      public static String toSource()
    • trunc

      public static int trunc(double value)