|
Bond 0.9
Bond Standard Library API Documentation
|
A collection of functions and constants for performing math operations. More...
Functions | |
| double | Bond::Sin (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::Cos (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::Tan (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::Asin (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::Acos (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::Atan (double x) |
| Returns the arctangent in radians of a value. | |
| float | Bond::Atanf (float x) |
| Returns the arctangent in radians of a value. | |
| double | Bond::Atan2 (double y, double x) |
| Returns the arctangent in radians of y/x. | |
| float | Bond::Atan2f (float y, float x) |
| Returns the arctangent in radians of y/x. | |
| double | Bond::Sinh (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::Cosh (double x) |
| Returns the hyperbolic cosine of a hyperbolic angle. | |
| double | Bond::Coshf (float x) |
| Returns the hyperbolic cosine of a hyperbolic angle. | |
| double | Bond::Tanh (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::Asinh (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::Acosh (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::Atanh (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::Exp (double x) |
| Returns e raised to an exponent. | |
| float | Bond::Expf (float x) |
| Returns e raised to an exponent. | |
| double | Bond::Exp2 (double x) |
| Returns 2 raised to an exponent. | |
| float | Bond::Exp2f (float x) |
| Returns 2 raised to an exponent. | |
| double | Bond::Log (double x) |
| Returns the natural logarithm of a value. | |
| float | Bond::Logf (float x) |
| Returns the natural logarithm of a value. | |
| double | Bond::Log2 (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::Log10 (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::Pow (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::Sqrt (double x) |
| Returns the square root of a value. | |
| float | Bond::Sqrtf (float x) |
| Returns the square root of a value. | |
| double | Bond::Cbrt (double x) |
| Returns the cube root of a value. | |
| float | Bond::Cbrtf (float x) |
| Returns the cube root of a value. | |
| double | Bond::Hypot (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::Ceil (double x) |
| Returns a value rounded upward. | |
| float | Bond::Ceilf (float x) |
| Returns a value rounded upward. | |
| double | Bond::Floor (double x) |
| Returns a value rounded downward. | |
| float | Bond::Floorf (float x) |
| Returns a value rounded downward. | |
| double | Bond::Trunc (double x) |
| Returns a value rounded toward zero. | |
| float | Bond::Truncf (float x) |
| Returns a value rounded toward zero. | |
| double | Bond::Fabs (double x) |
| Returns the absolute value of a value. | |
| float | Bond::Fabsf (float x) |
| Returns the absolute value of a value. | |
| double | Bond::Ldexp (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::Frexp (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::Modf (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::Fmod (double x, double y) |
| Returns the remainder of x/y rounded toward zero. | |
| float | Bond::Fmodf (float x, float y) |
| Returns the remainder of x/y rounded toward zero. | |
| double | Bond::CopySign (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::NaN () |
| Returns a value representing Not-a-Number. | |
| float | Bond::NaNf () |
| Returns a value representing Not-a-Number. | |
Variables | |
| const double | Bond::PI = 3.14159265358979323846 |
| The value of pi as a double. | |
| const float | Bond::PI_F = cast<float>(PI) |
| The value of pi as a float. | |
| const double | Bond::HALF_PI = PI / 2.0 |
| The value of pi/2 as a double. | |
| const float | Bond::HALF_PI_F = cast<float>(HALF_PI) |
| The value of pi/2 as a float. | |
| const double | Bond::TWO_PI = PI * 2.0 |
| The value of 2pi as a double. | |
| const float | Bond::TWO_PI_F = cast<float>(TWO_PI) |
| The value of 2pi as a float. | |
A collection of functions and constants for performing math operations.
| double Bond::Acos | ( | 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::Acosh | ( | 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::Asin | ( | 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::Asinh | ( | 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::Atan | ( | double | x | ) |
Returns the arctangent in radians of a value.
| x | A value in the range [-1, +1] whose arctangent is calculated. |
| double Bond::Atan2 | ( | double | y, |
| double | x ) |
Returns the arctangent in radians of y/x.
| 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.
| y | The coordinate on the Y axis. |
| x | The coordinate on the X axis. |
| float Bond::Atanf | ( | float | x | ) |
Returns the arctangent in radians of a value.
| x | A value in the range [-1, +1] whose arctangent is calculated. |
| double Bond::Atanh | ( | 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::Cbrt | ( | double | x | ) |
Returns the cube root of a value.
| x | The value whose square root is calculated. |
| float Bond::Cbrtf | ( | float | x | ) |
Returns the cube root of a value.
| x | The value whose square root is calculated. |
| double Bond::Ceil | ( | 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. |
| double Bond::CopySign | ( | 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::Cos | ( | 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::Cosh | ( | double | x | ) |
Returns the hyperbolic cosine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic cosine is calculated. |
| double Bond::Coshf | ( | float | x | ) |
Returns the hyperbolic cosine of a hyperbolic angle.
| x | A hyperbolic angle whose hyperbolic cosine is calculated. |
| double Bond::Exp | ( | double | x | ) |
Returns e raised to an exponent.
| x | The value of the exponent. |
| double Bond::Exp2 | ( | 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. |
| float Bond::Expf | ( | float | x | ) |
Returns e raised to an exponent.
| x | The value of the exponent. |
| double Bond::Fabs | ( | double | x | ) |
Returns the absolute value of a value.
| x | The value whose absolute value is calculated. |
| float Bond::Fabsf | ( | float | x | ) |
Returns the absolute value of a value.
| x | The value whose absolute value is calculated. |
| double Bond::Floor | ( | 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::Fmod | ( | double | x, |
| double | y ) |
Returns the remainder of x/y rounded toward zero.
| 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 rounded toward zero.
| x | The numerator of the division operation. |
| y | The denominator of the division operation. |
| double Bond::Frexp | ( | 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::Hypot | ( | 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. |
| double Bond::Ldexp | ( | 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::Log | ( | double | x | ) |
Returns the natural logarithm of a value.
| x | The value whose natural logarithm is calculated. |
| double Bond::Log10 | ( | 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::Log2 | ( | 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. |
| float Bond::Logf | ( | float | x | ) |
Returns the natural logarithm of a value.
| x | The value whose natural logarithm is calculated. |
| double Bond::Modf | ( | 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::NaN | ( | ) |
Returns a value representing Not-a-Number.
| float Bond::NaNf | ( | ) |
Returns a value representing Not-a-Number.
| double Bond::Pow | ( | 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::Sin | ( | 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::Sinh | ( | 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::Sqrt | ( | 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::Tan | ( | 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::Tanh | ( | 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::Trunc | ( | 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::HALF_PI = PI / 2.0 |
The value of pi/2 as a double.
| const float Bond::HALF_PI_F = cast<float>(HALF_PI) |
The value of pi/2 as a float.
| const double Bond::PI = 3.14159265358979323846 |
The value of pi as a double.
| const float Bond::PI_F = cast<float>(PI) |
The value of pi as a float.
| const double Bond::TWO_PI = PI * 2.0 |
The value of 2pi as a double.
| const float Bond::TWO_PI_F = cast<float>(TWO_PI) |
The value of 2pi as a float.