UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::CMath Class Reference

#include <MathUtils.h>

Static Public Member Functions

template<typename T >
static ULANG_FORCEINLINE constexprMax (const T A, const T B)
 Returns higher value in a generic way.
 
template<typename T >
static ULANG_FORCEINLINE constexprMin (const T A, const T B)
 Returns lower value in a generic way.
 
template<typename T >
static ULANG_FORCEINLINE constexprClamp (const T X, const T Min, const T Max)
 Clamps X to be between Min and Max, inclusive.
 
template<class T >
static ULANG_FORCEINLINE constexpr bool IsPowerOf2 (const T X)
 Checks if a number is a power of two.
 
static ULANG_FORCEINLINE float Loge (float Value)
 Computes natural logarithm.
 
static ULANGCORE_API double Extensionalize (double Value)
 
static ULANGCORE_API double ToFloat (int64_t Value)
 
static ULANGCORE_API double FloatAdd (double Left, double Right)
 
static ULANGCORE_API double FloatSubtract (double Left, double Right)
 
static ULANGCORE_API double FloatMultiply (double Left, double Right)
 
static ULANGCORE_API double FloatDivide (double Left, double Right)
 
static ULANG_FORCEINLINE double ReinterpretInt64AsDouble (uint64_t Int)
 
static ULANG_FORCEINLINE double FloatNaN ()
 
static ULANG_FORCEINLINE double FloatInfinity ()
 
static ULANGCORE_API bool FloatIsFinite (double Value)
 
static ULANGCORE_API bool FloatIsInfinite (double Value)
 
static ULANGCORE_API bool FloatIsNaN (double Value)
 
static ULANGCORE_API bool FloatEqual (double Left, double Right)
 
static ULANGCORE_API bool FloatLess (double Left, double Right)
 
static ULANGCORE_API bool FloatLessEqual (double Left, double Right)
 
static ULANG_FORCEINLINE bool FloatNotEqual (double Left, double Right)
 
static ULANG_FORCEINLINE bool FloatGreater (double Left, double Right)
 
static ULANG_FORCEINLINE bool FloatGreaterEqual (double Left, double Right)
 
static ULANGCORE_API int64_t FloatRanking (double Value)
 

Member Function Documentation

◆ Clamp()

template<typename T >
static ULANG_FORCEINLINE constexpr T uLang::CMath::Clamp ( const T  X,
const T  Min,
const T  Max 
)
inlinestaticconstexpr

Clamps X to be between Min and Max, inclusive.

◆ Extensionalize()

double uLang::CMath::Extensionalize ( double  Value)
static

◆ FloatAdd()

double uLang::CMath::FloatAdd ( double  Left,
double  Right 
)
static

◆ FloatDivide()

double uLang::CMath::FloatDivide ( double  Left,
double  Right 
)
static

◆ FloatEqual()

bool uLang::CMath::FloatEqual ( double  Left,
double  Right 
)
static

◆ FloatGreater()

static ULANG_FORCEINLINE bool uLang::CMath::FloatGreater ( double  Left,
double  Right 
)
inlinestatic

◆ FloatGreaterEqual()

static ULANG_FORCEINLINE bool uLang::CMath::FloatGreaterEqual ( double  Left,
double  Right 
)
inlinestatic

◆ FloatInfinity()

static ULANG_FORCEINLINE double uLang::CMath::FloatInfinity ( )
inlinestatic

◆ FloatIsFinite()

bool uLang::CMath::FloatIsFinite ( double  Value)
static

◆ FloatIsInfinite()

bool uLang::CMath::FloatIsInfinite ( double  Value)
static

◆ FloatIsNaN()

bool uLang::CMath::FloatIsNaN ( double  Value)
static

◆ FloatLess()

bool uLang::CMath::FloatLess ( double  Left,
double  Right 
)
static

◆ FloatLessEqual()

bool uLang::CMath::FloatLessEqual ( double  Left,
double  Right 
)
static

◆ FloatMultiply()

double uLang::CMath::FloatMultiply ( double  Left,
double  Right 
)
static

◆ FloatNaN()

static ULANG_FORCEINLINE double uLang::CMath::FloatNaN ( )
inlinestatic

◆ FloatNotEqual()

static ULANG_FORCEINLINE bool uLang::CMath::FloatNotEqual ( double  Left,
double  Right 
)
inlinestatic

◆ FloatRanking()

int64_t uLang::CMath::FloatRanking ( double  Value)
static

◆ FloatSubtract()

double uLang::CMath::FloatSubtract ( double  Left,
double  Right 
)
static

◆ IsPowerOf2()

template<class T >
static ULANG_FORCEINLINE constexpr bool uLang::CMath::IsPowerOf2 ( const T  X)
inlinestaticconstexpr

Checks if a number is a power of two.

◆ Loge()

static ULANG_FORCEINLINE float uLang::CMath::Loge ( float  Value)
inlinestatic

Computes natural logarithm.

◆ Max()

template<typename T >
static ULANG_FORCEINLINE constexpr T uLang::CMath::Max ( const T  A,
const T  B 
)
inlinestaticconstexpr

Returns higher value in a generic way.

◆ Min()

template<typename T >
static ULANG_FORCEINLINE constexpr T uLang::CMath::Min ( const T  A,
const T  B 
)
inlinestaticconstexpr

Returns lower value in a generic way.

◆ ReinterpretInt64AsDouble()

static ULANG_FORCEINLINE double uLang::CMath::ReinterpretInt64AsDouble ( uint64_t  Int)
inlinestatic

◆ ToFloat()

double uLang::CMath::ToFloat ( int64_t  Value)
static

The documentation for this class was generated from the following files: