public class MXMath
extends java.lang.Object
Constructor and Description |
---|
MXMath() |
Modifier and Type | Method and Description |
---|---|
static double |
abs(double double1)
Returns the absolute value of the double value.
|
static double |
add(double double1,
double double2)
Adds two double values and returns the result as a double value.
|
static int |
compareTo(double double1,
double double2)
Compares two double values and returns whether the double1 values is
less than, equal to or greater than double2 value.
|
static double |
divide(double double1,
double double2)
Divides double2 value from double1 value and returns the result
as a double value.
|
static double |
max(double double1,
double double2)
Returns the maximum of two double value.
|
static double |
min(double double1,
double double2)
Returns the minimum of two double value.
|
static double |
multiply(double double1,
double double2)
Multiplies two double values and returns the result as a double value.
|
static double |
negate(double double1)
Returns the negation of the double value.
|
static double |
subtract(double double1,
double double2)
Subtracts double2 value from double1 value and returns the result
as a double value.
|
public static double add(double double1, double double2)
public static double subtract(double double1, double double2)
public static double multiply(double double1, double double2)
public static double divide(double double1, double double2)
public static double abs(double double1)
public static double max(double double1, double double2)
public static double min(double double1, double double2)
public static double negate(double double1)
public static int compareTo(double double1, double double2)