public class FloatMath extends MathUtil
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.
|
Constructor and Description |
---|
FloatMath() |
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)
Converts from radians to degrees.
|
static float |
toRadians(float a)
Converts from degrees to radians.
|
angularDifference, angularDistance, clamp, epsilonEquals, exponential, iceil, ifloor, isWithin, lerp, lerpa, mirrorAngle, normal, normalizeAngle, normalizeAnglePositive, round, roundNearest, setToStringDecimalPlaces, toString, toString
public static final float PI
public static final float E
public static float sin(float a)
Math.sin(double)
public static float cos(float a)
Math.cos(double)
public static float tan(float a)
Math.tan(double)
public static float asin(float a)
Math.asin(double)
public static float acos(float a)
Math.acos(double)
public static float atan(float a)
Math.atan(double)
public static float atan2(float y, float x)
Math.atan2(double, double)
public static float toDegrees(float a)
Math.toDegrees(double)
public static float toRadians(float a)
Math.toRadians(double)
public static float sqrt(float v)
Math.sqrt(double)
public static float cbrt(float v)
Math.cbrt(double)
public static float hypot(float x, float y)
Math.hypot(double, double)
public static float exp(float v)
Math.exp(double)
public static float log(float v)
Math.log(double)
public static float log10(float v)
Math.log10(double)
public static float pow(float v, float e)
Math.pow(double, double)
public static float floor(float v)
Math.floor(double)
public static float ceil(float v)
Math.ceil(double)
Copyright © 2017. All rights reserved.