Class Overview
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)
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.
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
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.