|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Contains math functions. This is a static type with no instance services. You should never create instances of it by any means. More...
#include <math.h>
Public Member Functions | |
| template<> | |
| float | Min_ (float val1, float val2) |
| Returns the smallest single-precision floating point value out of the two specified. More... | |
| template<> | |
| double | Min_ (double val1, double val2) |
| Returns the smallest double-precision floating point value out of the two specified. More... | |
| template<> | |
| float | Max_ (float val1, float val2) |
| Returns the largest single-precision floating point value out of the two specified. More... | |
| template<> | |
| double | Max_ (double val1, double val2) |
| Returns the largest double-precision floating point value out of the two specified. More... | |
Static Public Member Functions | |
| static double | Acos (double d) |
| Calculates the arccosine of the specified value. More... | |
| static double | Asin (double d) |
| Calculates the arcsin of the specified value. More... | |
| static double | Atan (double d) |
| Calculates the arctan of the specified value. More... | |
| static double | Atan2 (double y, double x) |
| Calculates the arctan of the ration of the specified values. More... | |
| static Decimal | Ceiling (const Decimal &d) |
| Returns the smallest integral value that is greater than or equal to the specified value. More... | |
| static double | Ceiling (double a) |
| Returns the smallest integral value that is greater than or equal to the specified value. More... | |
| static double | Cos (double d) |
| Calculates the cosine of the specified value. More... | |
| static double | Cosh (double value) |
| Calculates the hyperbolic cosine of the specified value. More... | |
| static Decimal | Floor (const Decimal &d) |
| Returns the largest integral value that is less than or equal to the specified value. More... | |
| static double | Floor (double d) |
| Returns the largest integral value that is less than or equal to the specified value. More... | |
| static double | Sin (double a) |
| Calculates the sine of the specified value. More... | |
| static double | Tan (double a) |
| Calculates the tangen of the specified value. More... | |
| static double | Sinh (double value) |
| Calculates the hyperbolic sine of the specified value. More... | |
| static double | Tanh (double value) |
| Calculates the hyperbolic tangen of the specified value. More... | |
| static double | Round (double a) |
| Rounds the specified value to the nearest integral value. More... | |
| static double | Round (double value, int digits) |
| Rounds the specified value to the nearest value with the specified number of fractional digits. More... | |
| static double | Round (double value, MidpointRounding mode) |
| 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. More... | |
| static double | Round (double value, int digits, MidpointRounding mode) |
| 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. More... | |
| static Decimal | Round (const Decimal &d) |
| Rounds the specified value to the nearest integral value. More... | |
| static Decimal | Round (const Decimal &value, int digits) |
| Rounds the specified value to the nearest value with the specified number of fractional digits. More... | |
| static Decimal | Round (const Decimal &d, MidpointRounding mode) |
| 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. More... | |
| static Decimal | Round (const Decimal &d, int digits, MidpointRounding mode) |
| 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. More... | |
| static Decimal | Truncate (const Decimal &d) |
| Returns the Decimal object representing a value that has integral part equal to that of the value represented by the specified Decimal object of the with all fractional digits discarded. More... | |
| static double | Truncate (double d) |
| Returns a double-precision floating point value that has integral part equal to that of the specified value with all fractional digits discarded. More... | |
| static double | Sqrt (double d) |
| Returns the square root of the specified value. More... | |
| static double | Log (double d) |
| Returns the natural logarithm of the specified value. More... | |
| static double | Log10 (double d) |
| Returns the base-10 logarithm of the specified value. More... | |
| static double | Exp (double d) |
| Returns e constant raised to the specified power. More... | |
| static double | Pow (double x, double y) |
| Returns the specified value raised to the specified power. More... | |
| static double | IEEERemainder (double x, double y) |
| Returns the remainder resulting from the division of a specified number by another specified number. More... | |
| template<class T > | |
| static T | Abs (T value) |
| Returns the absolute value of the specified value. More... | |
| static Decimal | Abs (const Decimal &d) |
| Returns the absolute value of a value represented by the specified Decimal object. More... | |
| static double | Log (double a, double newBase) |
| Returns the logarithm of the specified value in the specified base. More... | |
| template<typename T > | |
| static std::enable_if< std::is_integral< T >::value &&!std::is_unsigned< T >::value, int >::type | Sign (T value) |
| Determines the sign of the specified signed integral value. More... | |
| template<typename T > | |
| static std::enable_if< std::is_floating_point< T >::value, int >::type | Sign (T value) |
| Determines the sign of the specified floating-point value. More... | |
| static int | Sign (const Decimal &value) |
| Determines the sign of the specified decimal value. More... | |
| static int64_t | BigMul (int a, int b) |
| Returns the full product of two 32-bit integers. More... | |
| static int | DivRem (int a, int b, int &result) |
| Calculates the quotient of two 32-bit integers and the remainder. More... | |
| static int64_t | DivRem (int64_t a, int64_t b, int64_t &result) |
| Calculates the quotient of two 64-bit integers and the remainder. More... | |
| template<class T > | |
| static T | Modulus (T x, T y) |
| Calculates the remainder resulting from the division one specified value by another specified value. More... | |
| template<class T0 , class T1 , class = typename std::enable_if<!std::is_same<T0, T1>::value, void>::type> | |
| static auto | Min (T0 val1, T1 val2) -> decltype(val1+val2) |
| Returns the smallest value out of two numeric ones specified. More... | |
| template<class T0 , class T1 , class = typename std::enable_if<std::is_same<T0, T1>::value, void>::type> | |
| static T0 | Min (T0 val1, T1 val2) |
| Returns the smallest value out of two numeric ones specified. More... | |
| template<class T0 , class T1 , class = typename std::enable_if<!std::is_same<T0, T1>::value, void>::type> | |
| static auto | Max (T0 val1, T1 val2) -> decltype(val1+val2) |
| Returns the greatest value out of two numeric ones specified. More... | |
| template<class T0 , class T1 , class = typename std::enable_if<std::is_same<T0, T1>::value, void>::type> | |
| static T0 | Max (T0 val1, T1 val2) |
| Returns the greatest value out of two numeric ones specified. More... | |
Static Public Attributes | |
| static const double | PI |
| The number Pi constant. More... | |
| static const double | E |
| Natural logarithm's base. More... | |
| static const double | PositiveInfinity |
| Represents the positive infinity. More... | |
| static const double | NegativeInfinity |
| Represents the negative infinity. More... | |
| static const double | NaN |
| Represents a not-a-number value. More... | |
Contains math functions. This is a static type with no instance services. You should never create instances of it by any means.
|
inlinestatic |
Returns the absolute value of the specified value.
| value | A value of arithmetic type |
value | T | The type of the value accepted by the method as an argument |
|
static |
Calculates the arccosine of the specified value.
| d | The value to calculate arccosine of |
d
|
static |
Calculates the arcsin of the specified value.
| d | The value to calculate arcsin of |
d
|
static |
Calculates the arctan of the specified value.
| d | The value to calculate arctan of |
d
|
static |
Calculates the arctan of the ration of the specified values.
| y | The point's y coordinate |
| x | The point's x coordinate |
|
static |
Returns the full product of two 32-bit integers.
| a | The first multiplier |
| b | The second multiplier |
a and b Returns the smallest integral value that is greater than or equal to the specified value.
| d | A decimal number |
d
|
static |
Returns the smallest integral value that is greater than or equal to the specified value.
| a | A double-precision floating point number |
d
|
static |
Calculates the cosine of the specified value.
| d | The value to calculate the cosine of |
d
|
static |
Calculates the hyperbolic cosine of the specified value.
| value | The value to calculate the hyperbolic cosine of |
value
|
static |
Calculates the quotient of two 32-bit integers and the remainder.
| a | The dividend |
| b | The divisor |
| result | The output parameter that contains the remainder resulting from division of a by b |
a and b
|
static |
Calculates the quotient of two 64-bit integers and the remainder.
| a | The dividend |
| b | The divisor |
| result | The output parameter that contains the remainder resulting from division of a by b |
a and b
|
static |
Returns e constant raised to the specified power.
| d | The power to raise e constant to |
d Returns the largest integral value that is less than or equal to the specified value.
| d | A decimal number |
d
|
static |
Returns the largest integral value that is less than or equal to the specified value.
| d | A double-precision floating point number |
d
|
static |
Returns the remainder resulting from the division of a specified number by another specified number.
| x | Dividend |
| y | Divisor |
|
static |
Returns the logarithm of the specified value in the specified base.
| a | A double-precision floating point value |
| newBase | The base of the logarithm |
a in the newBase base
|
static |
Returns the natural logarithm of the specified value.
| d | A double-precision floating point value |
d
|
static |
Returns the base-10 logarithm of the specified value.
| d | A double-precision floating point value |
d
|
inlinestatic |
Returns the greatest value out of two numeric ones specified.
| T0 | Type of first value. |
| T1 | Type of second value. |
| val1 | First value. |
| val2 | Second value. |
val1 and val2.
|
inlinestatic |
Returns the greatest value out of two numeric ones specified.
| T0 | Type of first value. |
| T1 | Type of second value. |
| val1 | First value. |
| val2 | Second value. |
val1 and val2.
|
inline |
Returns the largest double-precision floating point value out of the two specified.
| val1 | The first comparand |
| val2 | The second comparand |
val1 and val2; or NaN if one of the operands is NaN
|
inline |
Returns the largest single-precision floating point value out of the two specified.
| val1 | The first comparand |
| val2 | The second comparand |
val1 and val2; or NaN if one of the operands is NaN
|
inlinestatic |
Returns the smallest value out of two numeric ones specified.
| T0 | Type of first value. |
| T1 | Type of second value. |
| val1 | First value. |
| val2 | Second value. |
val1 and val2.
|
inlinestatic |
Returns the smallest value out of two numeric ones specified.
| T0 | Type of first value. |
| T1 | Type of second value. |
| val1 | First value. |
| val2 | Second value. |
val1 and val2.
|
inline |
Returns the smallest double-precision floating point value out of the two specified.
| val1 | The first comparand |
| val2 | The second comparand |
val1 and val2; or NaN if one of the operands is NaN
|
inline |
Returns the smallest single-precision floating point value out of the two specified.
| val1 | The first comparand |
| val2 | The second comparand |
val1 and val2; or NaN if one of the operands is NaN
|
inlinestatic |
Calculates the remainder resulting from the division one specified value by another specified value.
| x | The dividend |
| y | The divisor |
x by y | T | The type of the method's arguments |
|
static |
Returns the specified value raised to the specified power.
| x | The value to raise to the specified power |
| y | The power to raise the specified value to |
x raised to the power of y Rounds the specified value to the nearest integral value.
| d | The value to round |
d rounded to the nearest integral value
|
static |
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.
| d | The value to round |
| digits | The number of fractional digits in the rounded value |
| mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value
|
static |
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.
| d | The value to round |
| mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
d rounded to the nearest integral value Rounds the specified value to the nearest value with the specified number of fractional digits.
| value | The value to round |
| digits | The number of fractional digits in the rounded value |
value
|
static |
Rounds the specified value to the nearest integral value.
| a | The value to round |
a rounded to the nearest integral value
|
static |
Rounds the specified value to the nearest value with the specified number of fractional digits.
| value | The value to round |
| digits | The number of fractional digits in the rounded value |
value
|
static |
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.
| value | The value to round |
| digits | The number of fractional digits in the rounded value |
| mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value
|
static |
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.
| value | The value to round |
| mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value rounded to the nearest integral value
|
inlinestatic |
Determines the sign of the specified decimal value.
| value | The value to determine the sign of |
value is less than 0; 0 if value is equal to 0; 1 if value is greater than 0
|
inlinestatic |
Determines the sign of the specified signed integral value.
| value | The value to determine the sign of |
value is less than 0; 0 if value is equal to 0; 1 if value is greater than 0 | T | The integral signed type |
|
inlinestatic |
Determines the sign of the specified floating-point value.
| value | The value to determine the sign of |
value is less than 0; 0 if value is equal to 0; 1 if value is greater than 0 | T | The floating point type of the argument |
|
static |
Calculates the sine of the specified value.
| a | The value to calculate the sine of |
a
|
static |
Calculates the hyperbolic sine of the specified value.
| value | The value to calculate the hyperbolic sine of |
value
|
static |
Returns the square root of the specified value.
| d | A double-precision floating point value |
d
|
static |
Calculates the tangen of the specified value.
| a | The value to calculate the tangen of |
a
|
static |
Calculates the hyperbolic tangen of the specified value.
| value | The value to calculate the hyperbolic tangen of |
value Returns the Decimal object representing a value that has integral part equal to that of the value represented by the specified Decimal object of the with all fractional digits discarded.
| d | A decimal number |
|
static |
Returns a double-precision floating point value that has integral part equal to that of the specified value with all fractional digits discarded.
| d | A decimal number |
|
static |
Natural logarithm's base.
|
static |
Represents a not-a-number value.
|
static |
Represents the negative infinity.
|
static |
The number Pi constant.
|
static |
Represents the positive infinity.