This class contains various mathematical functions and constants.
More...
|
| static double | Pow (double baseNumber, double exponent) |
| | Raises the double number to the given power.
|
| |
| static int | RoundToInt (double valueToRound) |
| | This function rounds to closest integer. The difference to Math.Round is that n + 0.5 is always rounded to n + 1.
|
| |
|
|
const double | Epsilon |
| | Declaration of an epsilon to check whether two values (influenced by numerical errors) are equal. In other words, two values \(a\) and \(b\) are considered as identical if \(b \cdot (1 - \epsilon) \geq a \geq b \cdot (1 + \epsilon)\).
|
| |
|
const double | OneDegree |
| | One degree (1°) in radians. Can be used for easy conversion between degrees and radians.
|
| |
This class contains various mathematical functions and constants.
◆ Pow()
| static double Pow |
( |
double | baseNumber, |
|
|
double | exponent ) |
|
static |
Raises the double number to the given power.
- Parameters
-
| baseNumber | The base. |
| exponent | The exponent. |
- Returns
- The double number to the power of the exponent.
◆ RoundToInt()
| static int RoundToInt |
( |
double | valueToRound | ) |
|
|
static |
This function rounds to closest integer. The difference to Math.Round is that n + 0.5 is always rounded to n + 1.
- Parameters
-
| valueToRound | Value to be rounded. |
- Returns
- Result of operation.