|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Math
public final class Math
Implements math library methods.
Field Summary | |
---|---|
static double |
E
The constant e. |
static double |
PI
The constant Pi. |
Method Summary | |
---|---|
static double |
abs(double value)
Returns absolute value of the argument. |
static float |
abs(float value)
Returns absolute value of the argument. |
static int |
abs(int value)
Returns absolute value of the argument. |
static double |
acos(double value)
Returns the arc cosine of the argument. |
static double |
asin(double value)
Returns the arc sine of the argument. |
static double |
atan(double value)
Returns the arc tangent of the argument. |
static double |
atan2(double y,
double x)
Returns the angle in radians given the cartesian coordinates x and y. |
static double |
ceil(double value)
Returns value of the next integer which is higher than the argument. |
static double |
cos(double radians)
Returns the cosine of the angle. |
static double |
exp(double power)
Returns e raised to the specified power. |
static double |
floor(double value)
Returns value of the next integer which is lower than the argument. |
static double |
log(double value)
Returns the natural log of a double value. |
static double |
max(double value1,
double value2)
Returns the argument with the maximum value. |
static int |
max(int value1,
int value2)
Returns the argument with the maximum value. |
static double |
min(double value1,
double value2)
Returns the argument with the minimum value. |
static int |
min(int value1,
int value2)
Returns the argument with the minimum value. |
static double |
pow(double base,
double exponent)
Raises a base to an exponent. |
static double |
random()
Returns a random number between 0.0 and 1.0. |
static int |
round(float value)
Rounds the argument to an integer. |
static double |
sin(double radians)
Returns the sine of the angle. |
static double |
sqrt(double value)
Returns the square root of the argument. |
static double |
tan(double radians)
Returns the tangent of the angle. |
static double |
toDegrees(double radians)
Converts angle radians to degrees. |
static double |
toRadians(double degrees)
Converts angle in degrees to radians. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Field Detail |
---|
public static final double E
public static final double PI
Method Detail |
---|
public static double abs(double value)
value
- argument value
public static float abs(float value)
value
- argument value
public static int abs(int value)
value
- argument value
public static double acos(double value)
value
- argument value
public static double asin(double value)
value
- argument value
public static double atan(double value)
value
- argument value
public static double atan2(double y, double x)
y
- y coordinatex
- x coordinate
public static double ceil(double value)
value
- argument
public static double cos(double radians)
radians
- angle in radians
public static double exp(double power)
power
- power to raise e to
public static double floor(double value)
value
- argument
public static double log(double value)
value
- value to take natural log of
public static double max(double value1, double value2)
value1
- first argumentvalue2
- second argument
public static int max(int value1, int value2)
value1
- first argumentvalue2
- second argument
public static double min(double value1, double value2)
value1
- first argumentvalue2
- second argument
public static int min(int value1, int value2)
value1
- first argumentvalue2
- second argument
public static double pow(double base, double exponent)
base
- base valueexponent
- exponent value
public static double random()
public static int round(float value)
value
- argument
public static double sin(double radians)
radians
- angle in radians
public static double sqrt(double value)
value
- argument value
public static double tan(double radians)
radians
- angle in radians
public static double toDegrees(double radians)
radians
- angle in radians
public static double toRadians(double degrees)
degrees
- angle in degrees
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |