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

Variable Index

 o E
The double value that is closer than any other to e, the base of the natural logarithms.
 o PI
The double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter.

Method Index

 o cos(float)
Returns the trigonometric cosine of an angle.
 o 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.
 o round(float)
Returns the closest int to the argument.
 o sin(float)
Returns the trigonometric sine of an angle.

Variables

 o E
 public static final double E
The double value that is closer than any other to e, the base of the natural logarithms.

 o 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.

Methods

 o 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.
 o 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.
 o 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.
 o 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