|
Bond 0.9
Bond Standard Library API Documentation
|
A collection of functions and constants for performing math operations. More...
Functions | |
| double | Bond::SinD (double x) |
| Returns the sine of an angle in radians. | |
| float | Bond::SinF (float x) |
| Returns the sine of an angle in radians. | |
| double | Bond::CosD (double x) |
| Returns the cosine of an angle in radians. | |
| float | Bond::CosF (float x) |
| Returns the cosine of an angle in radians. | |
| double | Bond::TanD (double x) |
| Returns the tangent of an angle in radians. | |
| float | Bond::TanF (float x) |
| Returns the tangent of an angle in radians. | |
| double | Bond::AsinD (double x) |
| Returns the arcsine in radians of a value. | |
| float | Bond::AsinF (float x) |
| Returns the arcsine in radians of a value. | |
| double | Bond::AcosD (double x) |
| Returns the arccosine in radians of a value. | |
| float | Bond::AcosF (float x) |
| Returns the arccosine in radians of a value. | |
| double | Bond::AtanD (double x) |
| Returns the arctangent in radians of a value, in the range [-pi/2, +pi/2]. | |
| float | Bond::AtanF (float x) |
| Returns the arctangent in radians of a value, in the range [-pi/2, +pi/2]. | |
| double | Bond::Atan2D (double y, double x) |
| Returns the arctangent in radians of y/x, in the range [-pi, +pi], using the signs of both arguments to determine the quadrant. | |
| float | Bond::Atan2F (float y, float x) |
| Returns the arctangent in radians of y/x, in the range [-pi, +pi], using the signs of both arguments to determine the quadrant. | |
| double | Bond::SinhD (double x) |
| Returns the hyperbolic sine of a hyperbolic angle. | |
| float | Bond::SinhF (float x) |
| Returns the hyperbolic sine of a hyperbolic angle. | |
| double | Bond::CoshD (double x) |
| Returns the hyperbolic cosine of a hyperbolic angle. | |
| float | Bond::CoshF (float x) |
| Returns the hyperbolic cosine of a hyperbolic angle. | |
| double | Bond::TanhD (double x) |
| Returns the hyperbolic tangent of a hyperbolic angle. | |
| float | Bond::TanhF (float x) |
| Returns the hyperbolic tangent of a hyperbolic angle. | |
| double | Bond::AsinhD (double x) |
| Returns the inverse hyperbolic sine of a value. | |
| float | Bond::AsinhF (float x) |
| Returns the inverse hyperbolic sine of a value. | |
| double | Bond::AcoshD (double x) |
| Returns the inverse hyperbolic cosine of a value. | |
| float | Bond::AcoshF (float x) |
| Returns the inverse hyperbolic cosine of a value. | |
| double | Bond::AtanhD (double x) |
| Returns the inverse hyperbolic tangent of a value. | |
| float | Bond::AtanhF (float x) |
| Returns the inverse hyperbolic tangent of a value. | |
| double | Bond::ExpD (double x) |
| Returns e raised to an exponent. | |
| float | Bond::ExpF (float x) |
| Returns e raised to an exponent. | |
| double | Bond::Exp2D (double x) |
| Returns 2 raised to an exponent. | |
| float | Bond::Exp2F (float x) |
| Returns 2 raised to an exponent. | |
| double | Bond::LogD (double x) |
| Returns the natural logarithm of a value. | |
| float | Bond::LogF (float x) |
| Returns the natural logarithm of a value. | |
| double | Bond::Log2D (double x) |
| Returns the base-2 logarithm of a value. | |
| float | Bond::Log2F (float x) |
| Returns the base-2 logarithm of a value. | |
| double | Bond::Log10D (double x) |
| Returns the base-10 logarithm of a value. | |
| float | Bond::Log10F (float x) |
| Returns the base-10 logarithm of a value. | |
| double | Bond::PowD (double base, double exponent) |
| Returns a base value raised to an exponent. | |
| float | Bond::PowF (float base, float exponent) |
| Returns a base value raised to an exponent. | |
| double | Bond::SqrtD (double x) |
| Returns the square root of a value. | |
| float | Bond::SqrtF (float x) |
| Returns the square root of a value. | |
| double | Bond::CbrtD (double x) |
| Returns the cube root of a value. | |
| float | Bond::CbrtF (float x) |
| Returns the cube root of a value. | |
| double | Bond::HypotD (double x, double y) |
| Returns the hypotenuse of a right-angled triangle with sides of the given lengths. | |
| float | Bond::HypotF (float x, float y) |
| Returns the hypotenuse of a right-angled triangle with sides of the given lengths. | |
| double | Bond::CeilD (double x) |
| Returns a value rounded upward. | |
| float | Bond::CeilF (float x) |
| Returns a value rounded upward. | |
| double | Bond::FloorD (double x) |
| Returns a value rounded downward. | |
| float | Bond::FloorF (float x) |
| Returns a value rounded downward. | |
| double | Bond::TruncD (double x) |
| Returns a value rounded toward zero. | |
| float | Bond::TruncF (float x) |
| Returns a value rounded toward zero. | |
| char | Bond::AbsC (char x) |
| Returns the absolute value of a signed 8-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented. | |
| short | Bond::AbsS (short x) |
| Returns the absolute value of a signed 16-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented. | |
| int | Bond::AbsI (int x) |
| Returns the absolute value of a signed 32-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented. | |
| long | Bond::AbsL (long x) |
| Returns the absolute value of a signed 64-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented. | |
| double | Bond::AbsD (double x) |
| Returns the absolute value of a value. | |
| float | Bond::AbsF (float x) |
| Returns the absolute value of a value. | |
| double | Bond::LdexpD (double x, int exp) |
| Returns a value multiplied by 2 raised to an exponent. | |
| float | Bond::LdexpF (float x, int exp) |
| Returns a value multiplied by 2 raised to an exponent. | |
| double | Bond::FrexpD (double x, int *exp) |
| Decomposes a value into a fraction and an integral power of two. | |
| float | Bond::FrexpF (float x, int *exp) |
| Decomposes a value into a fraction and an integral power of two. | |
| double | Bond::ModfD (double x, double *ip) |
| Decomposes a value into its integral and fractional parts. | |
| float | Bond::ModfF (float x, float *ip) |
| Decomposes a value into its integral and fractional parts. | |
| double | Bond::FmodD (double x, double y) |
| Returns the remainder of x/y, where the quotient is rounded toward zero. The result has the same sign as x. | |
| float | Bond::FmodF (float x, float y) |
| Returns the remainder of x/y, where the quotient is rounded toward zero. The result has the same sign as x. | |
| double | Bond::CopySignD (double x, double y) |
| Returns a value with the magnitude of one and the sign of another. | |
| float | Bond::CopySignF (float x, float y) |
| Returns a value with the magnitude of one and the sign of another. | |
| double | Bond::NaND () |
| Returns a value representing Not-a-Number. | |
| float | Bond::NaNF () |
| Returns a value representing Not-a-Number. | |
| bool | Bond::IsNaND (double x) |
| Returns whether a value is Not-a-Number. | |
| bool | Bond::IsNaNF (float x) |
| Returns whether a value is Not-a-Number. | |
| bool | Bond::IsInfD (double x) |
| Returns whether a value is positive or negative infinity. | |
| bool | Bond::IsInfF (float x) |
| Returns whether a value is positive or negative infinity. | |
| bool | Bond::IsFiniteD (double x) |
| Returns whether a value is neither infinite nor Not-a-Number. | |
| bool | Bond::IsFiniteF (float x) |
| Returns whether a value is neither infinite nor Not-a-Number. | |
| bool | Bond::SignBitD (double x) |
| Returns whether the sign bit of a value is set. | |
| bool | Bond::SignBitF (float x) |
| Returns whether the sign bit of a value is set. | |
| double | Bond::RoundD (double x) |
| Returns a value rounded to the nearest integer, with halfway cases rounded away from zero. | |
| float | Bond::RoundF (float x) |
| Returns a value rounded to the nearest integer, with halfway cases rounded away from zero. | |
| double | Bond::RintD (double x) |
| Returns a value rounded to the nearest integer using the current rounding mode. | |
| float | Bond::RintF (float x) |
| Returns a value rounded to the nearest integer using the current rounding mode. | |
| double | Bond::NearbyintD (double x) |
| Returns a value rounded to the nearest integer using the current rounding mode without raising the inexact exception. | |
| float | Bond::NearbyintF (float x) |
| Returns a value rounded to the nearest integer using the current rounding mode without raising the inexact exception. | |
| double | Bond::RemainderD (double x, double y) |
| Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even. | |
| float | Bond::RemainderF (float x, float y) |
| Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even. | |
| long | Bond::LroundD (double x) |
| Returns a value rounded to the nearest long integer, with halfway cases rounded away from zero. | |
| long | Bond::LroundF (float x) |
| Returns a value rounded to the nearest long integer, with halfway cases rounded away from zero. | |
| double | Bond::Log1pD (double x) |
| Returns the natural logarithm of one plus a value. | |
| float | Bond::Log1pF (float x) |
| Returns the natural logarithm of one plus a value. | |
| double | Bond::Expm1D (double x) |
| Returns e raised to an exponent minus one. | |
| float | Bond::Expm1F (float x) |
| Returns e raised to an exponent minus one. | |
| double | Bond::ErfD (double x) |
| Returns the error function of a value. | |
| float | Bond::ErfF (float x) |
| Returns the error function of a value. | |
| double | Bond::ErfcD (double x) |
| Returns the complementary error function of a value. | |
| float | Bond::ErfcF (float x) |
| Returns the complementary error function of a value. | |
| double | Bond::TgammaD (double x) |
| Returns the gamma function of a value. | |
| float | Bond::TgammaF (float x) |
| Returns the gamma function of a value. | |
| double | Bond::LgammaD (double x) |
| Returns the natural logarithm of the absolute value of the gamma function of a value. | |
| float | Bond::LgammaF (float x) |
| Returns the natural logarithm of the absolute value of the gamma function of a value. | |
| double | Bond::FmaD (double x, double y, double z) |
| Returns x * y + z computed with a single rounding. | |
| float | Bond::FmaF (float x, float y, float z) |
| Returns x * y + z computed with a single rounding. | |
| double | Bond::NextafterD (double x, double y) |
| Returns the next representable value after x in the direction of y. | |
| float | Bond::NextafterF (float x, float y) |
| Returns the next representable value after x in the direction of y. | |
| double | Bond::ScalbnD (double x, int n) |
| Returns a value multiplied by 2 raised to an integral exponent. | |
| float | Bond::ScalbnF (float x, int n) |
| Returns a value multiplied by 2 raised to an integral exponent. | |
| int | Bond::IlogbD (double x) |
| Returns the unbiased exponent of a value as an integer. | |
| int | Bond::IlogbF (float x) |
| Returns the unbiased exponent of a value as an integer. | |
| double | Bond::LogbD (double x) |
| Returns the unbiased exponent of a value as a floating-point number. | |
| float | Bond::LogbF (float x) |
| Returns the unbiased exponent of a value as a floating-point number. | |
| double | Bond::RemquoD (double x, double y, int *quo) |
| Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even, and stores the sign and low bits of the quotient. | |
| float | Bond::RemquoF (float x, float y, int *quo) |
| Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even, and stores the sign and low bits of the quotient. | |
| double | Bond::InfD () |
| Returns a representation of positive infinity. | |
| float | Bond::InfF () |
| Returns a representation of positive infinity. | |
| char | Bond::MinC (char x, char y) |
| Returns the smaller of two values. | |
| uchar | Bond::MinUC (uchar x, uchar y) |
| Returns the smaller of two values. | |
| short | Bond::MinS (short x, short y) |
| Returns the smaller of two values. | |
| ushort | Bond::MinUS (ushort x, ushort y) |
| Returns the smaller of two values. | |
| int | Bond::MinI (int x, int y) |
| Returns the smaller of two values. | |
| uint | Bond::MinUI (uint x, uint y) |
| Returns the smaller of two values. | |
| long | Bond::MinL (long x, long y) |
| Returns the smaller of two values. | |
| ulong | Bond::MinUL (ulong x, ulong y) |
| Returns the smaller of two values. | |
| double | Bond::MinD (double x, double y) |
| Returns the smaller of two values. If either value is Not-a-Number, the other value is returned. | |
| float | Bond::MinF (float x, float y) |
| Returns the smaller of two values. If either value is Not-a-Number, the other value is returned. | |
| char | Bond::MaxC (char x, char y) |
| Returns the larger of two values. | |
| uchar | Bond::MaxUC (uchar x, uchar y) |
| Returns the larger of two values. | |
| short | Bond::MaxS (short x, short y) |
| Returns the larger of two values. | |
| ushort | Bond::MaxUS (ushort x, ushort y) |
| Returns the larger of two values. | |
| int | Bond::MaxI (int x, int y) |
| Returns the larger of two values. | |
| uint | Bond::MaxUI (uint x, uint y) |
| Returns the larger of two values. | |
| long | Bond::MaxL (long x, long y) |
| Returns the larger of two values. | |
| ulong | Bond::MaxUL (ulong x, ulong y) |
| Returns the larger of two values. | |
| double | Bond::MaxD (double x, double y) |
| Returns the larger of two values. If either value is Not-a-Number, the other value is returned. | |
| float | Bond::MaxF (float x, float y) |
| Returns the larger of two values. If either value is Not-a-Number, the other value is returned. | |
| char | Bond::ClampC (char value, char low, char high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| uchar | Bond::ClampUC (uchar value, uchar low, uchar high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| short | Bond::ClampS (short value, short low, short high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| ushort | Bond::ClampUS (ushort value, ushort low, ushort high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| int | Bond::ClampI (int value, int low, int high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| uint | Bond::ClampUI (uint value, uint low, uint high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| long | Bond::ClampL (long value, long low, long high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| ulong | Bond::ClampUL (ulong value, ulong low, ulong high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| double | Bond::ClampD (double value, double low, double high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
| float | Bond::ClampF (float value, float low, float high) |
| Returns a value limited to the range [low, high]. The result is undefined if low is greater than high. | |
Variables | |
| const double | Bond::PI_D = 3.14159265358979323846 |
| The value of pi as a double. | |
| const float | Bond::PI_F = cast<float>(PI_D) |
| The value of pi as a float. | |
| const double | Bond::HALF_PI_D = PI_D / 2.0 |
| The value of pi/2 as a double. | |
| const float | Bond::HALF_PI_F = cast<float>(HALF_PI_D) |
| The value of pi/2 as a float. | |
| const double | Bond::TWO_PI_D = PI_D * 2.0 |
| The value of 2pi as a double. | |
| const float | Bond::TWO_PI_F = cast<float>(TWO_PI_D) |
| The value of 2pi as a float. | |
| const double | Bond::E_D = 2.71828182845904523536 |
| The value of e as a double. | |
| const float | Bond::E_F = cast<float>(E_D) |
| The value of e as a float. | |
| const double | Bond::LN2_D = 0.69314718055994530942 |
| The natural logarithm of 2 as a double. | |
| const float | Bond::LN2_F = cast<float>(LN2_D) |
| The natural logarithm of 2 as a float. | |
| const double | Bond::LN10_D = 2.30258509299404568402 |
| The natural logarithm of 10 as a double. | |
| const float | Bond::LN10_F = cast<float>(LN10_D) |
| The natural logarithm of 10 as a float. | |
| const double | Bond::LOG2E_D = 1.44269504088896340736 |
| The base-2 logarithm of e as a double. | |
| const float | Bond::LOG2E_F = cast<float>(LOG2E_D) |
| The base-2 logarithm of e as a float. | |
| const double | Bond::LOG10E_D = 0.43429448190325182765 |
| The base-10 logarithm of e as a double. | |
| const float | Bond::LOG10E_F = cast<float>(LOG10E_D) |
| The base-10 logarithm of e as a float. | |
| const double | Bond::SQRT2_D = 1.41421356237309504880 |
| The square root of 2 as a double. | |
| const float | Bond::SQRT2_F = cast<float>(SQRT2_D) |
| The square root of 2 as a float. | |
| const double | Bond::SQRT1_2_D = 0.70710678118654752440 |
| The square root of 1/2 as a double. | |
| const float | Bond::SQRT1_2_F = cast<float>(SQRT1_2_D) |
| The square root of 1/2 as a float. | |
A collection of functions and constants for performing math operations.
| char Bond::AbsC | ( | char | x | ) |
Returns the absolute value of a signed 8-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented.
| x | The value whose absolute value is calculated. |
| double Bond::AbsD | ( | double | x | ) |
Returns the absolute value of a value.
| x | The value whose absolute value is calculated. |
| float Bond::AbsF | ( | float | x | ) |
Returns the absolute value of a value.
| x | The value whose absolute value is calculated. |
| int Bond::AbsI | ( | int | x | ) |
Returns the absolute value of a signed 32-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented.
| x | The value whose absolute value is calculated. |
| long Bond::AbsL | ( | long | x | ) |
Returns the absolute value of a signed 64-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented.
| x | The value whose absolute value is calculated. |
| short Bond::AbsS | ( | short | x | ) |
Returns the absolute value of a signed 16-bit value. The result is unspecified for the most negative value, whose absolute value cannot be represented.
| x | The value whose absolute value is calculated. |
| double Bond::AcosD | ( | double | x | ) |
Returns the arccosine in radians of a value.
| x | A value in the range [-1, +1] whose arccosine is calculated. |
| float Bond::AcosF | ( | float | x | ) |
Returns the arccosine in radians of a value.
| x | A value in the range [-1, +1] whose arccosine is calculated. |
| double Bond::AcoshD | ( | double | x | ) |
Returns the inverse hyperbolic cosine of a value.
| x | The value whose inverse hyperbolic cosine is calculated. |
| float Bond::AcoshF | ( | float | x | ) |
Returns the inverse hyperbolic cosine of a value.
| x | The value whose inverse hyperbolic cosine is calculated. |
| double Bond::AsinD | ( | double | x | ) |
Returns the arcsine in radians of a value.
| x | A value in the range [-1, +1] whose arcsine is calculated. |
| float Bond::AsinF | ( | float | x | ) |
Returns the arcsine in radians of a value.
| x | A value in the range [-1, +1] whose arcsine is calculated. |
| double Bond::AsinhD | ( | double | x | ) |
Returns the inverse hyperbolic sine of a value.
| x | The value whose inverse hyperbolic sine is calculated. |
| float Bond::AsinhF | ( | float | x | ) |
Returns the inverse hyperbolic sine of a value.
| x | The value whose inverse hyperbolic sine is calculated. |
| double Bond::Atan2D | ( | double | y, |
| double | x ) |
Returns the arctangent in radians of y/x, in the range [-pi, +pi], using the signs of both arguments to determine the quadrant.
| y | The coordinate on the Y axis. |
| x | The coordinate on the X axis. |
| float Bond::Atan2F | ( | float | y, |
| float | x ) |
Returns the arctangent in radians of y/x, in the range [-pi, +pi], using the signs of both arguments to determine the quadrant.
| y | The coordinate on the Y axis. |
| x | The coordinate on the X axis. |
| double Bond::AtanD | ( | double | x | ) |
Returns the arctangent in radians of a value, in the range [-pi/2, +pi/2].
| x | The value whose arctangent is calculated. |
| float Bond::AtanF | ( | float | x | ) |
Returns the arctangent in radians of a value, in the range [-pi/2, +pi/2].
| x | The value whose arctangent is calculated. |
| double Bond::AtanhD | ( | double | x | ) |
Returns the inverse hyperbolic tangent of a value.
| x | The value whose inverse hyperbolic tangent is calculated. |
| float Bond::AtanhF | ( | float | x | ) |
Returns the inverse hyperbolic tangent of a value.
| x | The value whose inverse hyperbolic tangent is calculated. |
| double Bond::CbrtD | ( | double | x | ) |
Returns the cube root of a value.
| x | The value whose cube root is calculated. |
| float Bond::CbrtF | ( | float | x | ) |
Returns the cube root of a value.
| x | The value whose cube root is calculated. |
| double Bond::CeilD | ( | double | x | ) |
Returns a value rounded upward.
| x | The value to be rounded. |
| float Bond::CeilF | ( | float | x | ) |
Returns a value rounded upward.
| x | The value to be rounded. |
| char Bond::ClampC | ( | char | value, |
| char | low, | ||
| char | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| double Bond::ClampD | ( | double | value, |
| double | low, | ||
| double | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| float Bond::ClampF | ( | float | value, |
| float | low, | ||
| float | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| int Bond::ClampI | ( | int | value, |
| int | low, | ||
| int | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| long Bond::ClampL | ( | long | value, |
| long | low, | ||
| long | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| short Bond::ClampS | ( | short | value, |
| short | low, | ||
| short | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| uchar Bond::ClampUC | ( | uchar | value, |
| uchar | low, | ||
| uchar | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| uint Bond::ClampUI | ( | uint | value, |
| uint | low, | ||
| uint | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| ulong Bond::ClampUL | ( | ulong | value, |
| ulong | low, | ||
| ulong | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| ushort Bond::ClampUS | ( | ushort | value, |
| ushort | low, | ||
| ushort | high ) |
Returns a value limited to the range [low, high]. The result is undefined if low is greater than high.
| value | The value to limit. |
| low | The lower bound. |
| high | The upper bound. |
| double Bond::CopySignD | ( | double | x, |
| double | y ) |
Returns a value with the magnitude of one and the sign of another.
| x | The value whose magnitude is returned. |
| y | The value whose sign is returned. |
| float Bond::CopySignF | ( | float | x, |
| float | y ) |
Returns a value with the magnitude of one and the sign of another.
| x | The value whose magnitude is returned. |
| y | The value whose sign is returned. |
| double Bond::CosD | ( | double | x | ) |
Returns the cosine of an angle in radians.
| x | An angle expressed in radians. |
| float Bond::CosF | ( | float | x | ) |
Returns the cosine of an angle in radians.
| x | An angle expressed in radians. |
| double Bond::CoshD | ( | double | x | ) |
Returns the hyperbolic cosine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic cosine is calculated. |
| float Bond::CoshF | ( | float | x | ) |
Returns the hyperbolic cosine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic cosine is calculated. |
| double Bond::ErfcD | ( | double | x | ) |
Returns the complementary error function of a value.
| x | The value whose complementary error function is calculated. |
| float Bond::ErfcF | ( | float | x | ) |
Returns the complementary error function of a value.
| x | The value whose complementary error function is calculated. |
| double Bond::ErfD | ( | double | x | ) |
Returns the error function of a value.
| x | The value whose error function is calculated. |
| float Bond::ErfF | ( | float | x | ) |
Returns the error function of a value.
| x | The value whose error function is calculated. |
| double Bond::Exp2D | ( | double | x | ) |
Returns 2 raised to an exponent.
| x | The value of the exponent. |
| float Bond::Exp2F | ( | float | x | ) |
Returns 2 raised to an exponent.
| x | The value of the exponent. |
| double Bond::ExpD | ( | double | x | ) |
Returns e raised to an exponent.
| x | The value of the exponent. |
| float Bond::ExpF | ( | float | x | ) |
Returns e raised to an exponent.
| x | The value of the exponent. |
| double Bond::Expm1D | ( | double | x | ) |
Returns e raised to an exponent minus one.
| x | The value of the exponent. |
| float Bond::Expm1F | ( | float | x | ) |
Returns e raised to an exponent minus one.
| x | The value of the exponent. |
| double Bond::FloorD | ( | double | x | ) |
Returns a value rounded downward.
| x | The value to be rounded. |
| float Bond::FloorF | ( | float | x | ) |
Returns a value rounded downward.
| x | The value to be rounded. |
| double Bond::FmaD | ( | double | x, |
| double | y, | ||
| double | z ) |
Returns x * y + z computed with a single rounding.
| x | The multiplicand. |
| y | The multiplier. |
| z | The value added to the product. |
| float Bond::FmaF | ( | float | x, |
| float | y, | ||
| float | z ) |
Returns x * y + z computed with a single rounding.
| x | The multiplicand. |
| y | The multiplier. |
| z | The value added to the product. |
| double Bond::FmodD | ( | double | x, |
| double | y ) |
Returns the remainder of x/y, where the quotient is rounded toward zero. The result has the same sign as x.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| float Bond::FmodF | ( | float | x, |
| float | y ) |
Returns the remainder of x/y, where the quotient is rounded toward zero. The result has the same sign as x.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| double Bond::FrexpD | ( | double | x, |
| int * | exp ) |
Decomposes a value into a fraction and an integral power of two.
| x | The value that is decomposed. |
| exp | A pointer to an int where the exponent is stored. |
| float Bond::FrexpF | ( | float | x, |
| int * | exp ) |
Decomposes a value into a fraction and an integral power of two.
| x | The value that is decomposed. |
| exp | A pointer to an int where the exponent is stored. |
| double Bond::HypotD | ( | double | x, |
| double | y ) |
Returns the hypotenuse of a right-angled triangle with sides of the given lengths.
| x | The length of the first side of the triangle. |
| y | The length of the second side of the triangle. |
| float Bond::HypotF | ( | float | x, |
| float | y ) |
Returns the hypotenuse of a right-angled triangle with sides of the given lengths.
| x | The length of the first side of the triangle. |
| y | The length of the second side of the triangle. |
| int Bond::IlogbD | ( | double | x | ) |
Returns the unbiased exponent of a value as an integer.
| x | The value whose exponent is returned. |
| int Bond::IlogbF | ( | float | x | ) |
Returns the unbiased exponent of a value as an integer.
| x | The value whose exponent is returned. |
| double Bond::InfD | ( | ) |
Returns a representation of positive infinity.
| float Bond::InfF | ( | ) |
Returns a representation of positive infinity.
| bool Bond::IsFiniteD | ( | double | x | ) |
Returns whether a value is neither infinite nor Not-a-Number.
| x | The value to check. |
| bool Bond::IsFiniteF | ( | float | x | ) |
Returns whether a value is neither infinite nor Not-a-Number.
| x | The value to check. |
| bool Bond::IsInfD | ( | double | x | ) |
Returns whether a value is positive or negative infinity.
| x | The value to check. |
| bool Bond::IsInfF | ( | float | x | ) |
Returns whether a value is positive or negative infinity.
| x | The value to check. |
| bool Bond::IsNaND | ( | double | x | ) |
Returns whether a value is Not-a-Number.
| x | The value to check. |
| bool Bond::IsNaNF | ( | float | x | ) |
Returns whether a value is Not-a-Number.
| x | The value to check. |
| double Bond::LdexpD | ( | double | x, |
| int | exp ) |
Returns a value multiplied by 2 raised to an exponent.
| x | The value that is multiplied by 2 raised to an exponent. |
| exp | The exponent. |
| float Bond::LdexpF | ( | float | x, |
| int | exp ) |
Returns a value multiplied by 2 raised to an exponent.
| x | The value that is multiplied by 2 raised to an exponent. |
| exp | The exponent. |
| double Bond::LgammaD | ( | double | x | ) |
Returns the natural logarithm of the absolute value of the gamma function of a value.
| x | The value whose log-gamma function is calculated. |
| float Bond::LgammaF | ( | float | x | ) |
Returns the natural logarithm of the absolute value of the gamma function of a value.
| x | The value whose log-gamma function is calculated. |
| double Bond::Log10D | ( | double | x | ) |
Returns the base-10 logarithm of a value.
| x | The value whose logarithm is calculated. |
| float Bond::Log10F | ( | float | x | ) |
Returns the base-10 logarithm of a value.
| x | The value whose logarithm is calculated. |
| double Bond::Log1pD | ( | double | x | ) |
Returns the natural logarithm of one plus a value.
| x | The value whose logarithm is calculated. |
| float Bond::Log1pF | ( | float | x | ) |
Returns the natural logarithm of one plus a value.
| x | The value whose logarithm is calculated. |
| double Bond::Log2D | ( | double | x | ) |
Returns the base-2 logarithm of a value.
| x | The value whose logarithm is calculated. |
| float Bond::Log2F | ( | float | x | ) |
Returns the base-2 logarithm of a value.
| x | The value whose logarithm is calculated. |
| double Bond::LogbD | ( | double | x | ) |
Returns the unbiased exponent of a value as a floating-point number.
| x | The value whose exponent is returned. |
| float Bond::LogbF | ( | float | x | ) |
Returns the unbiased exponent of a value as a floating-point number.
| x | The value whose exponent is returned. |
| double Bond::LogD | ( | double | x | ) |
Returns the natural logarithm of a value.
| x | The value whose natural logarithm is calculated. |
| float Bond::LogF | ( | float | x | ) |
Returns the natural logarithm of a value.
| x | The value whose natural logarithm is calculated. |
| long Bond::LroundD | ( | double | x | ) |
Returns a value rounded to the nearest long integer, with halfway cases rounded away from zero.
| x | The value to be rounded. |
| long Bond::LroundF | ( | float | x | ) |
Returns a value rounded to the nearest long integer, with halfway cases rounded away from zero.
| x | The value to be rounded. |
| char Bond::MaxC | ( | char | x, |
| char | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| double Bond::MaxD | ( | double | x, |
| double | y ) |
Returns the larger of two values. If either value is Not-a-Number, the other value is returned.
| x | The first value. |
| y | The second value. |
| float Bond::MaxF | ( | float | x, |
| float | y ) |
Returns the larger of two values. If either value is Not-a-Number, the other value is returned.
| x | The first value. |
| y | The second value. |
| int Bond::MaxI | ( | int | x, |
| int | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| long Bond::MaxL | ( | long | x, |
| long | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| short Bond::MaxS | ( | short | x, |
| short | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| uchar Bond::MaxUC | ( | uchar | x, |
| uchar | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| uint Bond::MaxUI | ( | uint | x, |
| uint | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| ulong Bond::MaxUL | ( | ulong | x, |
| ulong | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| ushort Bond::MaxUS | ( | ushort | x, |
| ushort | y ) |
Returns the larger of two values.
| x | The first value. |
| y | The second value. |
| char Bond::MinC | ( | char | x, |
| char | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| double Bond::MinD | ( | double | x, |
| double | y ) |
Returns the smaller of two values. If either value is Not-a-Number, the other value is returned.
| x | The first value. |
| y | The second value. |
| float Bond::MinF | ( | float | x, |
| float | y ) |
Returns the smaller of two values. If either value is Not-a-Number, the other value is returned.
| x | The first value. |
| y | The second value. |
| int Bond::MinI | ( | int | x, |
| int | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| long Bond::MinL | ( | long | x, |
| long | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| short Bond::MinS | ( | short | x, |
| short | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| uchar Bond::MinUC | ( | uchar | x, |
| uchar | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| uint Bond::MinUI | ( | uint | x, |
| uint | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| ulong Bond::MinUL | ( | ulong | x, |
| ulong | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| ushort Bond::MinUS | ( | ushort | x, |
| ushort | y ) |
Returns the smaller of two values.
| x | The first value. |
| y | The second value. |
| double Bond::ModfD | ( | double | x, |
| double * | ip ) |
Decomposes a value into its integral and fractional parts.
| x | The value that is decomposed. |
| ip | A pointer to a double where the integral part is stored. |
| float Bond::ModfF | ( | float | x, |
| float * | ip ) |
Decomposes a value into its integral and fractional parts.
| x | The value that is decomposed. |
| ip | A pointer to a float where the integral part is stored. |
| double Bond::NaND | ( | ) |
Returns a value representing Not-a-Number.
| float Bond::NaNF | ( | ) |
Returns a value representing Not-a-Number.
| double Bond::NearbyintD | ( | double | x | ) |
Returns a value rounded to the nearest integer using the current rounding mode without raising the inexact exception.
| x | The value to be rounded. |
| float Bond::NearbyintF | ( | float | x | ) |
Returns a value rounded to the nearest integer using the current rounding mode without raising the inexact exception.
| x | The value to be rounded. |
| double Bond::NextafterD | ( | double | x, |
| double | y ) |
Returns the next representable value after x in the direction of y.
| x | The starting value. |
| y | The value that indicates the direction. |
| float Bond::NextafterF | ( | float | x, |
| float | y ) |
Returns the next representable value after x in the direction of y.
| x | The starting value. |
| y | The value that indicates the direction. |
| double Bond::PowD | ( | double | base, |
| double | exponent ) |
Returns a base value raised to an exponent.
| base | The value of the base. |
| exponent | The value of the exponent. |
| float Bond::PowF | ( | float | base, |
| float | exponent ) |
Returns a base value raised to an exponent.
| base | The value of the base. |
| exponent | The value of the exponent. |
| double Bond::RemainderD | ( | double | x, |
| double | y ) |
Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| float Bond::RemainderF | ( | float | x, |
| float | y ) |
Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| double Bond::RemquoD | ( | double | x, |
| double | y, | ||
| int * | quo ) |
Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even, and stores the sign and low bits of the quotient.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| quo | A pointer to an int where a value with the sign of the quotient and at least its three lowest bits is stored. |
| float Bond::RemquoF | ( | float | x, |
| float | y, | ||
| int * | quo ) |
Returns the remainder of x/y, where the quotient is rounded to the nearest integer, with halfway cases rounded to even, and stores the sign and low bits of the quotient.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| quo | A pointer to an int where a value with the sign of the quotient and at least its three lowest bits is stored. |
| double Bond::RintD | ( | double | x | ) |
Returns a value rounded to the nearest integer using the current rounding mode.
| x | The value to be rounded. |
| float Bond::RintF | ( | float | x | ) |
Returns a value rounded to the nearest integer using the current rounding mode.
| x | The value to be rounded. |
| double Bond::RoundD | ( | double | x | ) |
Returns a value rounded to the nearest integer, with halfway cases rounded away from zero.
| x | The value to be rounded. |
| float Bond::RoundF | ( | float | x | ) |
Returns a value rounded to the nearest integer, with halfway cases rounded away from zero.
| x | The value to be rounded. |
| double Bond::ScalbnD | ( | double | x, |
| int | n ) |
Returns a value multiplied by 2 raised to an integral exponent.
| x | The value that is multiplied by 2 raised to an exponent. |
| n | The exponent. |
| float Bond::ScalbnF | ( | float | x, |
| int | n ) |
Returns a value multiplied by 2 raised to an integral exponent.
| x | The value that is multiplied by 2 raised to an exponent. |
| n | The exponent. |
| bool Bond::SignBitD | ( | double | x | ) |
Returns whether the sign bit of a value is set.
| x | The value to check. |
| bool Bond::SignBitF | ( | float | x | ) |
Returns whether the sign bit of a value is set.
| x | The value to check. |
| double Bond::SinD | ( | double | x | ) |
Returns the sine of an angle in radians.
| x | An angle expressed in radians. |
| float Bond::SinF | ( | float | x | ) |
Returns the sine of an angle in radians.
| x | An angle expressed in radians. |
| double Bond::SinhD | ( | double | x | ) |
Returns the hyperbolic sine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic sine is calculated. |
| float Bond::SinhF | ( | float | x | ) |
Returns the hyperbolic sine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic sine is calculated. |
| double Bond::SqrtD | ( | double | x | ) |
Returns the square root of a value.
| x | The value whose square root is calculated. |
| float Bond::SqrtF | ( | float | x | ) |
Returns the square root of a value.
| x | The value whose square root is calculated. |
| double Bond::TanD | ( | double | x | ) |
Returns the tangent of an angle in radians.
| x | An angle expressed in radians. |
| float Bond::TanF | ( | float | x | ) |
Returns the tangent of an angle in radians.
| x | An angle expressed in radians. |
| double Bond::TanhD | ( | double | x | ) |
Returns the hyperbolic tangent of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic tangent is calculated. |
| float Bond::TanhF | ( | float | x | ) |
Returns the hyperbolic tangent of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic tangent is calculated. |
| double Bond::TgammaD | ( | double | x | ) |
Returns the gamma function of a value.
| x | The value whose gamma function is calculated. |
| float Bond::TgammaF | ( | float | x | ) |
Returns the gamma function of a value.
| x | The value whose gamma function is calculated. |
| double Bond::TruncD | ( | double | x | ) |
Returns a value rounded toward zero.
| x | The value to be rounded. |
| float Bond::TruncF | ( | float | x | ) |
Returns a value rounded toward zero.
| x | The value to be rounded. |
| const double Bond::E_D = 2.71828182845904523536 |
The value of e as a double.
| const float Bond::E_F = cast<float>(E_D) |
The value of e as a float.
| const double Bond::HALF_PI_D = PI_D / 2.0 |
The value of pi/2 as a double.
| const float Bond::HALF_PI_F = cast<float>(HALF_PI_D) |
The value of pi/2 as a float.
| const double Bond::LN10_D = 2.30258509299404568402 |
The natural logarithm of 10 as a double.
| const float Bond::LN10_F = cast<float>(LN10_D) |
The natural logarithm of 10 as a float.
| const double Bond::LN2_D = 0.69314718055994530942 |
The natural logarithm of 2 as a double.
| const float Bond::LN2_F = cast<float>(LN2_D) |
The natural logarithm of 2 as a float.
| const double Bond::LOG10E_D = 0.43429448190325182765 |
The base-10 logarithm of e as a double.
| const float Bond::LOG10E_F = cast<float>(LOG10E_D) |
The base-10 logarithm of e as a float.
| const double Bond::LOG2E_D = 1.44269504088896340736 |
The base-2 logarithm of e as a double.
| const float Bond::LOG2E_F = cast<float>(LOG2E_D) |
The base-2 logarithm of e as a float.
| const double Bond::PI_D = 3.14159265358979323846 |
The value of pi as a double.
| const float Bond::PI_F = cast<float>(PI_D) |
The value of pi as a float.
| const double Bond::SQRT1_2_D = 0.70710678118654752440 |
The square root of 1/2 as a double.
| const float Bond::SQRT1_2_F = cast<float>(SQRT1_2_D) |
The square root of 1/2 as a float.
| const double Bond::SQRT2_D = 1.41421356237309504880 |
The square root of 2 as a double.
| const float Bond::SQRT2_F = cast<float>(SQRT2_D) |
The square root of 2 as a float.
| const double Bond::TWO_PI_D = PI_D * 2.0 |
The value of 2pi as a double.
| const float Bond::TWO_PI_F = cast<float>(TWO_PI_D) |
The value of 2pi as a float.