All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.util.Math
java.lang.Object
|
+----com.bulletproof.util.Math
- public final class Math
- extends Object
-
E
- The
double value that is closer than any other to
e, the base of the natural logarithms.
-
PI
- The
double value that is closer than any other to
pi, the ratio of the circumference of a circle to its diameter.
-
cos(float)
- Returns the trigonometric cosine of an angle.
-
floor(float)
- Returns the largest (closest to positive infinity)
double value that is not greater than the argument and
is equal to a mathematical integer.
-
round(float)
- Returns the closest
int to the argument.
-
sin(float)
- Returns the trigonometric sine of an angle.
E
public static final double E
- The
double value that is closer than any other to
e, the base of the natural logarithms.
PI
public static final double PI
- The
double value that is closer than any other to
pi, the ratio of the circumference of a circle to its diameter.
sin
public static float sin(float radians)
- Returns the trigonometric sine of an angle.
- Parameters:
- a - an angle, in radians.
- Returns:
- the sine of the argument.
cos
public static double cos(float radians)
- Returns the trigonometric cosine of an angle.
- Parameters:
- a - an angle, in radians.
- Returns:
- the cosine of the argument.
floor
public static double floor(float a)
- Returns the largest (closest to positive infinity)
double value that is not greater than the argument and
is equal to a mathematical integer.
- Parameters:
- a - a
double value.
- a - an assigned value.
- Returns:
- the largest (closest to positive infinity)
double value that is not greater than the argument
and is equal to a mathematical integer.
round
public static int round(float a)
- Returns the closest
int to the argument.
- Parameters:
- a - a
float value.
- Returns:
- the value of the argument rounded to the nearest
int value.
All Packages Class Hierarchy This Package Previous Next Index