android.util
public
class
android.util.FloatMath
Math routines similar to those found in Math. Performs
computations on float
values directly without incurring the overhead
of conversions to and from double
.
On one platform, FloatMath.sqrt(100)
executes in one third of the
time required by java.lang.Math.sqrt(100)
.
Summary
Public Methods
|
|
|
static |
|
float |
ceil(float value) |
|
|
|
static |
|
float |
cos(float angle) |
|
|
|
static |
|
float |
floor(float value) |
|
|
|
static |
|
float |
sin(float angle) |
|
|
|
static |
|
float |
sqrt(float value) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Methods
public
static
float
ceil(float value)
Returns the float conversion of the most negative (i.e. closest to
negative infinity) integer value which is greater than the argument.
public
static
float
cos(float angle)
Returns the closest float approximation of the cosine of the argument.
Parameters
angle
| to compute the cosine of, in radians |
public
static
float
floor(float value)
Returns the float conversion of the most positive (i.e. closest to
positive infinity) integer value which is less than the argument.
public
static
float
sin(float angle)
Returns the closest float approximation of the sine of the argument.
Parameters
angle
| to compute the cosine of, in radians |
public
static
float
sqrt(float value)
Returns the closest float approximation of the square root of the
argument.