public abstract class DoubleMath
extends java.lang.Object
Contains all constants and functions from JavaScript Math Object, for type double
.
Modifier and Type | Field and Description |
---|---|
static double |
E
See Math.E.
|
static double |
LN10
See Math.LN10.
|
static double |
LN2
See Math.LN2.
|
static double |
LOG10E
See Math.LOG10E.
|
static double |
LOG2E
See Math.LOG2E.
|
static double |
PI
See Math.PI.
|
static double |
SQRT1_2
See Math.SQRT1_2.
|
static double |
SQRT2
See Math.SQRT2.
|
Constructor and Description |
---|
DoubleMath() |
Modifier and Type | Method and Description |
---|---|
static double |
abs(double x)
Return Math.abs(x).
|
static double |
acos(double x)
Return Math.acos(x).
|
static double |
asin(double x)
Return Math.asin(x).
|
static double |
atan(double x)
Return Math.atan(x).
|
static double |
atan2(double y,
double x)
Return Math.atan2(x).
|
static double |
ceil(double x)
Return Math.ceil(x).
|
static double |
cos(double x)
Return Math.cos(x).
|
static double |
exp(double x)
Return Math.exp(x).
|
static double |
floor(double x)
Return Math.floor(x).
|
static double |
log(double x)
Return Math.log(x).
|
static double |
max(double x,
double y)
Return Math.max(x, y).
|
static double |
min(double x,
double y)
Return Math.(x).
|
static double |
pow(double x,
double y)
Return Math.pow(x).
|
static double |
random()
Return Math.random(x).
|
static double |
round(double x)
Return Math.round(x).
|
static int |
sign(double x)
Return Math.sign(x).
|
static double |
sin(double x)
Return Math.sin(x).
|
static double |
sqrt(double x)
Return Math.sqrt(x).
|
static double |
tan(double x)
Return Math.tan(x).
|
public static final double E
See Math.E.
public static final double LN2
See Math.LN2.
public static final double LN10
See Math.LN10.
public static final double LOG2E
See Math.LOG2E.
public static final double LOG10E
See Math.LOG10E.
public static final double PI
See Math.PI.
public static final double SQRT1_2
See Math.SQRT1_2.
public static final double SQRT2
See Math.SQRT2.
public static double abs(double x)
Return Math.abs(x).
x
- Argument value.public static double acos(double x)
Return Math.acos(x).
x
- Argument value.public static double asin(double x)
Return Math.asin(x).
x
- Argument value.public static double atan(double x)
Return Math.atan(x).
x
- Argument value.public static double atan2(double y, double x)
Return Math.atan2(x).
y
- y-coordinate.x
- x-coordinate.public static double ceil(double x)
Return Math.ceil(x).
x
- Argument value.public static double cos(double x)
Return Math.cos(x).
x
- Argument value.public static double exp(double x)
Return Math.exp(x).
x
- Argument value.public static double floor(double x)
Return Math.floor(x).
x
- Argument value.public static double log(double x)
Return Math.log(x).
x
- Argument value.public static double max(double x, double y)
Return Math.max(x, y).
x
- First argument.y
- Second argument.public static double min(double x, double y)
Return Math.(x).
x
- First argument.y
- Second argument.public static double pow(double x, double y)
Return Math.pow(x).
x
- First argument.y
- Second argument.public static double random()
Return Math.random(x).
public static double round(double x)
Return Math.round(x).
x
- Argument value.public static int sign(double x)
Return Math.sign(x).
x
- Argument value.public static double sin(double x)
Return Math.sin(x).
x
- Argument value.public static double sqrt(double x)
Return Math.sqrt(x).
x
- Argument value.