pythagoras.f

## Class FloatMath

• ```public class FloatMath
extends MathUtil```
Utility methods and constants for single-precision floating point math. Extends `MathUtil` with shim methods that call through to `Math` and convert the results to float.
• ### Field Summary

Fields
Modifier and Type Field and Description
`static float` `E`
The base value of the natural logarithm.
`static float` `PI`
The ratio of a circle's circumference to its diameter.
• ### Fields inherited from class pythagoras.f.MathUtil

`EPSILON, HALF_PI, TAU, TWO_PI`
• ### Constructor Summary

Constructors
Constructor and Description
`FloatMath()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static float` `acos(float a)`
Computes and returns the arc cosine of the given value.
`static float` `asin(float a)`
Computes and returns the arc sine of the given value.
`static float` `atan(float a)`
Computes and returns the arc tangent of the given value.
`static float` ```atan2(float y, float x)```
Computes and returns the arc tangent of the given values.
`static float` `cbrt(float v)`
Returns the cube root of the supplied value.
`static float` `ceil(float v)`
Returns the ceiling of v.
`static float` `cos(float a)`
Computes and returns the cosine of the given angle.
`static float` `exp(float v)`
Returns e to the power of the supplied value.
`static float` `floor(float v)`
Returns the floor of v.
`static float` ```hypot(float x, float y)```
Computes and returns sqrt(x*x + y*y).
`static float` `log(float v)`
Returns the natural logarithm of the supplied value.
`static float` `log10(float v)`
Returns the base 10 logarithm of the supplied value.
`static float` ```pow(float v, float e)```
Returns v to the power of e.
`static float` `sin(float a)`
Computes and returns the sine of the given angle.
`static float` `sqrt(float v)`
Returns the square root of the supplied value.
`static float` `tan(float a)`
Computes and returns the tangent of the given angle.
`static float` `toDegrees(float a)`
`static float` `toRadians(float a)`
• ### Methods inherited from class pythagoras.f.MathUtil

`angularDifference, angularDistance, clamp, epsilonEquals, exponential, iceil, ifloor, isWithin, lerp, lerpa, mirrorAngle, normal, normalizeAngle, normalizeAnglePositive, round, roundNearest, setToStringDecimalPlaces, toString, toString`
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### PI

`public static final float PI`
The ratio of a circle's circumference to its diameter.
Constant Field Values
• #### E

`public static final float E`
The base value of the natural logarithm.
Constant Field Values
• ### Constructor Detail

• #### FloatMath

`public FloatMath()`
• ### Method Detail

• #### sin

`public static float sin(float a)`
Computes and returns the sine of the given angle.
`Math.sin(double)`
• #### cos

`public static float cos(float a)`
Computes and returns the cosine of the given angle.
`Math.cos(double)`
• #### tan

`public static float tan(float a)`
Computes and returns the tangent of the given angle.
`Math.tan(double)`
• #### asin

`public static float asin(float a)`
Computes and returns the arc sine of the given value.
`Math.asin(double)`
• #### acos

`public static float acos(float a)`
Computes and returns the arc cosine of the given value.
`Math.acos(double)`
• #### atan

`public static float atan(float a)`
Computes and returns the arc tangent of the given value.
`Math.atan(double)`
• #### atan2

```public static float atan2(float y,
float x)```
Computes and returns the arc tangent of the given values.
`Math.atan2(double, double)`
• #### sqrt

`public static float sqrt(float v)`
Returns the square root of the supplied value.
`Math.sqrt(double)`
• #### cbrt

`public static float cbrt(float v)`
Returns the cube root of the supplied value.
`Math.cbrt(double)`
• #### exp

`public static float exp(float v)`
Returns e to the power of the supplied value.
`Math.exp(double)`
• #### log

`public static float log(float v)`
Returns the natural logarithm of the supplied value.
`Math.log(double)`
`public static float log10(float v)`
`Math.log10(double)`