|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.util.FloatMath
public class 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).
| Method Summary | |
|---|---|
static float |
ceil(float value)
Returns the float conversion of the most negative (i.e. |
static float |
cos(float angle)
Returns the closest float approximation of the cosine of the argument. |
static float |
floor(float value)
Returns the float conversion of the most positive (i.e. |
static float |
sin(float angle)
Returns the closest float approximation of the sine of the argument. |
static float |
sqrt(float value)
Returns the closest float approximation of the square root of the argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static float floor(float value)
value - to be converted
public static float ceil(float value)
value - to be converted
public static float sin(float angle)
angle - to compute the cosine of, in radians
public static float cos(float angle)
angle - to compute the cosine of, in radians
public static float sqrt(float value)
value - to compute sqrt of
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||