Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Misc
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Misc/MathUtils.h |
| Include | #include "uLang/Common/Misc/MathUtils.h" |
Syntax
class CMath
Functions
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE constexpr T | Clamp
(
const T X, |
Clamps X to be between Min and Max, inclusive. | |
| double | Extensionalize
(
double Value |
||
| double | FloatAdd
(
double Left, |
Arithmetic operations in a non-fast-math environment (IEEE compliant). | |
| double | FloatDivide
(
double Left, |
||
| bool | FloatEqual
(
double Left, |
We use an ordering relationship different from the default IEEE float ordering (because we require NaNs to compare equal to each other). | |
| ULANG_FORCEINLINE bool | FloatGreater
(
double Left, |
||
| ULANG_FORCEINLINE bool | FloatGreaterEqual
(
double Left, |
||
| ULANG_FORCEINLINE double | |||
| bool | FloatIsFinite
(
double Value |
Predicates for different FP specials. | |
| bool | FloatIsInfinite
(
double Value |
||
| bool | FloatIsNaN
(
double Value |
||
| bool | FloatLess
(
double Left, |
||
| bool | FloatLessEqual
(
double Left, |
||
| double | FloatMultiply
(
double Left, |
||
| ULANG_FORCEINLINE double | FloatNaN () |
||
| ULANG_FORCEINLINE bool | FloatNotEqual
(
double Left, |
||
| int64_t | FloatRanking
(
double Value |
Ranking function that turns a double into an int64 that defines a total order compatible with the ordering implied for floats, to be precise | |
| double | FloatSubtract
(
double Left, |
||
| ULANG_FORCEINLINE constexpr bool | IsPowerOf2
(
const T X |
Checks if a number is a power of two. | |
| ULANG_FORCEINLINE float | Loge
(
float Value |
Computes natural logarithm. | |
| ULANG_FORCEINLINE constexpr T | Max
(
const T A, |
Returns higher value in a generic way. | |
| ULANG_FORCEINLINE constexpr T | Min
(
const T A, |
Returns lower value in a generic way. | |
| ULANG_FORCEINLINE double | ReinterpretInt64AsDouble
(
uint64_t Int |
FP special constants: NaN and infinity. | |
| double | ToFloat
(
int64_t Value |