![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#include <algorithm>#include <cmath>#include <climits>#include <float.h>#include <Standard_TypeDef.hxx>Functions | |
| Use std::acos instead double | ACos (const double theValue) |
Returns the value of the arc cosine of a theValue. | |
| double | ACosApprox (const double theValue) |
Returns the approximate value of the arc cosine theValue. The max error is about 1 degree near Value=0. NOTE: Avoid using this function in new code, it presumably slower then std::acos. | |
| Use std::asin instead double | ASin (const double theValue) |
Returns the value of the arc sine of a theValue. | |
| Use std::atan2 instead double | ATan2 (const double theX, const double theY) |
Computes the arc tangent of theX divided by theY using the signs of both arguments to determine the quadrant of the return value. | |
| Use std::atanh instead double | ATanh (const double theValue) |
Returns the value of the hyperbolic arc tangent of theValue. | |
| Use std::acosh instead double | ACosh (const double theValue) |
Returns the value of the hyperbolic arc cosine of theValue. | |
| Use std::cosh instead double | Cosh (const double theValue) |
Returns the hyperbolic cosine of a double theValue. | |
| Use std::sinh instead double | Sinh (const double theValue) |
Returns the hyperbolic sine of a double theValue. | |
| Use std::log instead double | Log (const double theValue) |
Computes the natural (base-e) logarithm of number theValue. | |
| Use std::sqrt instead double | Sqrt (const double theValue) |
Returns the square root of a double theValue. | |
| This function duplicates std::nextafter and will be removed in future releases Use std::nextafter instead double | NextAfter (const double theValue, const double theDirection) |
Returns the next representable value of a double theValue in the direction of theDirection. Equivalent to std::nextafter. | |
| This function duplicates std::copysign and will be removed in future releases Use std::copysign instead double | Sign (const double theMagnitude, const double theSign) |
Composes a floating point value with the magnitude of theMagnitude and the sign of theSign. Equivalent to std::copysign. | |
| constexpr double | RealSmall () |
| Returns the minimum positive double value greater than zero. | |
| Use std::abs instead double | Abs (const double theValue) |
Returns the absolute value of a double Value. Equivalent to std::abs. | |
| bool | IsEqual (const double theValue1, const double theValue2) |
| Returns Standard_True if two doubles are equal within the precision defined by RealSmall(). | |
| constexpr int | RealDigits () |
| Returns the number of digits of precision in a double. | |
| constexpr double | RealEpsilon () |
| Returns the minimum positive double such that 1.0 + RealEpsilon() != 1.0. | |
| constexpr double | RealFirst () |
| Returns the minimum value of a double. | |
| constexpr int | RealFirst10Exp () |
| Returns the minimum value of exponent(base 10) of a double. | |
| constexpr double | RealLast () |
| Returns the maximum value of a double. | |
| constexpr int | RealLast10Exp () |
| Returns the maximum value of exponent(base 10) of a double. | |
| constexpr int | RealMantissa () |
| Returns the size in bits of the mantissa part of a double. | |
| constexpr int | RealRadix () |
| Returns the radix of a double. | |
| constexpr int | RealSize () |
| Returns the size in bits of a double. | |
| constexpr double | IntToReal (const int theValue) |
Converts a int theValue to a double. | |
| Use std::atan instead double | ATan (const double theValue) |
Returns the value of the arc tangent of a double theValue. | |
| Use std::ceil instead double | Ceiling (const double theValue) |
Returns the next integer greater than or equal to a double theValue. | |
| Use std::cos instead double | Cos (const double theValue) |
Returns the cosine of a double theValue. Equivalent to std::cos. | |
| double | Epsilon (const double theValue) |
The function returns absolute value of difference between theValue and other nearest value of double type. Nearest value is chosen in direction of infinity the same sign as theValue. If theValue is 0 then returns minimal positive value of double type. | |
| Use std::exp instead double | Exp (const double theValue) |
Returns the exponential of a double theValue. Equivalent to std::exp. | |
| Use std::floor instead double | Floor (const double theValue) |
Returns the nearest integer less than or equal to a double theValue. Equivalent to std::floor. | |
| Use std::trunc instead double | IntegerPart (const double theValue) |
Returns the integer part of a double theValue. Equivalent to std::trunc. | |
| Use std::log10 instead double | Log10 (const double theValue) |
Returns the logarithm to base 10 of a double theValue. Equivalent to std::log10. | |
| Use std::max instead constexpr double | Max (const double theValue1, const double theValue2) |
| Returns the maximum value of two doubles. Equivalent to std::max. | |
| Use std::min instead constexpr double | Min (const double theValue1, const double theValue2) |
| Returns the minimum value of two doubles. Equivalent to std::min. | |
| Use std::pow instead double | Pow (const double theValue, const double thePower) |
Returns a double theValue raised to the power of thePower. | |
| double | RealPart (const double theValue) |
Returns the fractional part of a double theValue. Always non-negative. | |
| constexpr int | RealToInt (const double theValue) |
Converts a double theValue to the nearest valid int. If input value is out of valid range for int, minimal or maximal possible int is returned. | |
| constexpr float | RealToShortReal (const double theValue) |
Converts a double theValue to the nearest valid float. If input value is out of valid range for float, minimal or maximal possible float is returned. | |
| Use std::round instead double | Round (const double theValue) |
Returns the nearest integer of a double theValue. Equivalent to std::round. | |
| Use std::sin instead double | Sin (const double theValue) |
Returns the sine of a double theValue. Equivalent to std::sin. | |
| Use std::asinh instead double | ASinh (const double theValue) |
Returns the hyperbolic arc sine of a double theValue. Equivalent to std::asinh. | |
| constexpr double | Square (const double theValue) |
Returns the square of a double theValue. | |
| Use std::tan instead double | Tan (const double theValue) |
Returns the tangent of a double theValue. Equivalent to std::tan. | |
| Use std::tanh instead double | Tanh (const double theValue) |
Returns the hyperbolic tangent of a double theValue. Equivalent to std::tanh. | |
Returns the absolute value of a double Value. Equivalent to std::abs.
Returns the value of the arc cosine of a theValue.
Returns the approximate value of the arc cosine theValue. The max error is about 1 degree near Value=0. NOTE: Avoid using this function in new code, it presumably slower then std::acos.
Returns the value of the hyperbolic arc cosine of theValue.
Returns the value of the arc sine of a theValue.
Returns the hyperbolic arc sine of a double theValue. Equivalent to std::asinh.
Returns the value of the arc tangent of a double theValue.
Computes the arc tangent of theX divided by theY using the signs of both arguments to determine the quadrant of the return value.
Returns the value of the hyperbolic arc tangent of theValue.
Returns the next integer greater than or equal to a double theValue.
Returns the cosine of a double theValue. Equivalent to std::cos.
Returns the hyperbolic cosine of a double theValue.
The function returns absolute value of difference between theValue and other nearest value of double type. Nearest value is chosen in direction of infinity the same sign as theValue. If theValue is 0 then returns minimal positive value of double type.
Returns the exponential of a double theValue. Equivalent to std::exp.
Returns the nearest integer less than or equal to a double theValue. Equivalent to std::floor.
Returns the integer part of a double theValue. Equivalent to std::trunc.
Returns Standard_True if two doubles are equal within the precision defined by RealSmall().
Computes the natural (base-e) logarithm of number theValue.
Returns the logarithm to base 10 of a double theValue. Equivalent to std::log10.
|
constexpr |
Returns the maximum value of two doubles. Equivalent to std::max.
|
constexpr |
Returns the minimum value of two doubles. Equivalent to std::min.
|
inline |
Returns the next representable value of a double theValue in the direction of theDirection. Equivalent to std::nextafter.
Returns a double theValue raised to the power of thePower.
Returns the minimum positive double such that 1.0 + RealEpsilon() != 1.0.
Returns the minimum value of exponent(base 10) of a double.
Returns the maximum value of exponent(base 10) of a double.
Returns the fractional part of a double theValue. Always non-negative.
Returns the minimum positive double value greater than zero.
Converts a double theValue to the nearest valid int. If input value is out of valid range for int, minimal or maximal possible int is returned.
Converts a double theValue to the nearest valid float. If input value is out of valid range for float, minimal or maximal possible float is returned.
Returns the nearest integer of a double theValue. Equivalent to std::round.
|
inline |
Composes a floating point value with the magnitude of theMagnitude and the sign of theSign. Equivalent to std::copysign.
Returns the sine of a double theValue. Equivalent to std::sin.
Returns the hyperbolic sine of a double theValue.
Returns the square root of a double theValue.
Returns the tangent of a double theValue. Equivalent to std::tan.
Returns the hyperbolic tangent of a double theValue. Equivalent to std::tanh.