Navigation
API > API/Runtime > API/Runtime/uLangCore
| Name | CMath |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Misc/MathUtils.h |
| Include Path | #include "uLang/Common/Misc/MathUtils.h" |
Syntax
class CMath
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ULANG_FORCEINLINE constexpr T Clamp
(
const T X, |
Clamps X to be between Min and Max, inclusive. | uLang/Common/Misc/MathUtils.h | |
static double Extensionalize
(
double Value |
uLang/Common/Misc/MathUtils.h | ||
static double FloatAdd
(
double Left, |
Arithmetic operations in a non-fast-math environment (IEEE compliant). | uLang/Common/Misc/MathUtils.h | |
static double FloatDivide
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static 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/Common/Misc/MathUtils.h | |
static ULANG_FORCEINLINE bool FloatGreater
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static ULANG_FORCEINLINE bool FloatGreaterEqual
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static ULANG_FORCEINLINE double FloatInfinity() |
uLang/Common/Misc/MathUtils.h | ||
static bool FloatIsFinite
(
double Value |
Predicates for different FP specials. | uLang/Common/Misc/MathUtils.h | |
static bool FloatIsInfinite
(
double Value |
uLang/Common/Misc/MathUtils.h | ||
static bool FloatIsNaN
(
double Value |
uLang/Common/Misc/MathUtils.h | ||
static bool FloatLess
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static bool FloatLessEqual
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static double FloatMultiply
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static ULANG_FORCEINLINE double FloatNaN() |
uLang/Common/Misc/MathUtils.h | ||
static ULANG_FORCEINLINE bool FloatNotEqual
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static 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 | uLang/Common/Misc/MathUtils.h | |
static double FloatSubtract
(
double Left, |
uLang/Common/Misc/MathUtils.h | ||
static ULANG_FORCEINLINE constexpr bool IsPowerOf2
(
const T X |
Checks if a number is a power of two. | uLang/Common/Misc/MathUtils.h | |
static ULANG_FORCEINLINE float Loge
(
float Value |
Computes natural logarithm. | uLang/Common/Misc/MathUtils.h | |
static ULANG_FORCEINLINE constexpr T Max
(
const T A, |
Returns higher value in a generic way. | uLang/Common/Misc/MathUtils.h | |
static ULANG_FORCEINLINE constexpr T Min
(
const T A, |
Returns lower value in a generic way. | uLang/Common/Misc/MathUtils.h | |
static ULANG_FORCEINLINE double ReinterpretInt64AsDouble
(
uint64_t Int |
FP special constants: NaN and infinity. | uLang/Common/Misc/MathUtils.h | |
static double ToFloat
(
int64_t Value |
uLang/Common/Misc/MathUtils.h |