MathF

MathF struct

Contains math functions for single-precision floating-point values. This is a static type with no instance services. You should never create instances of it by any means.

class MathF

Methods

MethodDescription
static T Abs(T)Returns the absolute value of the specified value.
static float Acos(float)Calculates the arccosine of the specified value.
static float Asin(float)Calculates the arcsin of the specified value.
static float Atan(float)Calculates the arctan of the specified value.
static float Atan2(float, float)Calculates the arctan of the ration of the specified values.
static float Ceiling(float)Returns the smallest integral value that is greater than or equal to the specified value.
static float Cos(float)Calculates the cosine of the specified value.
static float Cosh(float)Calculates the hyperbolic cosine of the specified value.
static float Exp(float)Returns e constant raised to the specified power.
static float Floor(float)Returns the largest integral value that is less than or equal to the specified value.
static float IEEERemainder(float, float)Returns the remainder resulting from the division of a specified number by another specified number.
static float Log(float)Returns the natural logarithm of the specified value.
static float Log(float, float)Returns the logarithm of the specified value in the specified base.
static float Log10(float)Returns the base-10 logarithm of the specified value.
static float Pow(float, float)Returns the specified value raised to the specified power.
static float Round(float)Rounds the specified value to the nearest integral value.
static float Round(float, int)Rounds the specified value to the nearest value with the specified number of fractional digits.
static float Round(float, MidpointRounding)Rounds the specified value to the nearest integral number. A parameter specifies the function’s behavior if the specified value is equally close to two nearest numbers.
static float Round(float, int, MidpointRounding)Rounds the specified value to the nearest value with the specified number of fractional digits. A parameter specifies the function’s behavior if the specified value is equally close to two nearest numbers.
static float RoundImpl(float, int, MidpointRounding)Rounds the specified value to the nearest value with the specified number of fractional digits. A parameter specifies the function’s behavior if the specified value is equally close to two nearest numbers.
static std::enable_if<std::is_integral<T>::value&&!std::is_unsigned<T>::value, int>::type Sign(T)Determines the sign of the specified signed integral value.
static std::enable_if<std::is_floating_point<T>::value, int>::type Sign(T)Determines the sign of the specified floating-point value.
static float Sin(float)Calculates the sine of the specified value.
static float Sinh(float)Calculates the hyperbolic sine of the specified value.
static float Sqrt(float)Returns the square root of the specified value.
static float Tan(float)Calculates the tangen of the specified value.
static float Tanh(float)Calculates the hyperbolic tangen of the specified value.
static float Truncate(float)Returns a float-precision floating point value that has integral part equal to that of the specified value with all fractional digits discarded.

Fields

FieldDescription
static ENatural logarithm’s base.
static constexpr MaxRoundingDigits
static PIThe number Pi constant.
static TauTau value.

See Also