UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMathUtil< RealType > Class Template Reference

#include <MathUtil.h>

+ Inheritance diagram for TMathUtil< RealType >:

Static Public Member Functions

static bool IsNaN (const RealType Value)
 
static bool IsFinite (const RealType Value)
 
static RealType Abs (const RealType Value)
 
static RealType Clamp (const RealType Value, const RealType ClampMin, const RealType ClampMax)
 
static RealType Sign (const RealType Value)
 
static int32 SignAsInt (const RealType Value)
 
static RealType SignNonZero (const RealType Value)
 
static RealType Max (const RealType A, const RealType B)
 
static RealType Max3 (const RealType A, const RealType B, const RealType C)
 
static int32 Max3Index (const RealType A, const RealType B, const RealType C)
 
static RealType Min (const RealType A, const RealType B)
 
static RealType Min3 (const RealType A, const RealType B, const RealType C)
 
static int32 Min3Index (const RealType A, const RealType B, const RealType C)
 
static void MinMax (RealType A, RealType B, RealType C, RealType &MinOut, RealType &MaxOut)
 
static RealType SmoothMin (RealType A, RealType B, RealType BlendExtent)
 
static RealType SmoothMax (RealType A, RealType B, RealType BlendExtent)
 
static RealType Sqrt (const RealType Value)
 
static RealType Cbrt (const RealType Value)
 
static RealType Tan (const RealType Value)
 
static RealType Atan2 (const RealType ValueY, const RealType ValueX)
 
static RealType Sin (const RealType Value)
 
static RealType Cos (const RealType Value)
 
static RealType ACos (const RealType Value)
 
static RealType Floor (const RealType Value)
 
static RealType Ceil (const RealType Value)
 
static RealType Round (const RealType Value)
 
static RealType Pow (const RealType Value, const RealType Power)
 
static RealType Exp (const RealType Power)
 
static RealType Log (const RealType Value)
 
static RealType Lerp (const RealType A, const RealType B, RealType Alpha)
 
static RealType Atan2Positive (const RealType Y, const RealType X)
 

Member Function Documentation

◆ Abs()

template<typename RealType >
RealType TMathUtil< RealType >::Abs ( const RealType  Value)
inlinestatic

◆ ACos()

template<typename RealType >
RealType TMathUtil< RealType >::ACos ( const RealType  Value)
inlinestatic

◆ Atan2()

template<typename RealType >
RealType TMathUtil< RealType >::Atan2 ( const RealType  ValueY,
const RealType  ValueX 
)
inlinestatic

◆ Atan2Positive()

template<typename RealType >
RealType TMathUtil< RealType >::Atan2Positive ( const RealType  Y,
const RealType  X 
)
inlinestatic
Returns
result of Atan2 shifted to [0,2pi] (normal ATan2 returns in range [-pi,pi])

◆ Cbrt()

template<typename RealType >
RealType TMathUtil< RealType >::Cbrt ( const RealType  Value)
inlinestatic

Compute cube root

◆ Ceil()

template<typename RealType >
RealType TMathUtil< RealType >::Ceil ( const RealType  Value)
inlinestatic

◆ Clamp()

template<typename RealType >
RealType TMathUtil< RealType >::Clamp ( const RealType  Value,
const RealType  ClampMin,
const RealType  ClampMax 
)
inlinestatic

◆ Cos()

template<typename RealType >
RealType TMathUtil< RealType >::Cos ( const RealType  Value)
inlinestatic

◆ Exp()

template<typename RealType >
RealType TMathUtil< RealType >::Exp ( const RealType  Power)
inlinestatic

◆ Floor()

template<typename RealType >
RealType TMathUtil< RealType >::Floor ( const RealType  Value)
inlinestatic

◆ IsFinite()

template<typename RealType >
bool TMathUtil< RealType >::IsFinite ( const RealType  Value)
inlinestatic

◆ IsNaN()

template<typename RealType >
bool TMathUtil< RealType >::IsNaN ( const RealType  Value)
inlinestatic

◆ Lerp()

template<typename RealType >
RealType TMathUtil< RealType >::Lerp ( const RealType  A,
const RealType  B,
RealType  Alpha 
)
inlinestatic

◆ Log()

template<typename RealType >
RealType TMathUtil< RealType >::Log ( const RealType  Value)
inlinestatic

◆ Max()

template<typename RealType >
RealType TMathUtil< RealType >::Max ( const RealType  A,
const RealType  B 
)
inlinestatic

◆ Max3()

template<typename RealType >
RealType TMathUtil< RealType >::Max3 ( const RealType  A,
const RealType  B,
const RealType  C 
)
inlinestatic

◆ Max3Index()

template<typename RealType >
int32 TMathUtil< RealType >::Max3Index ( const RealType  A,
const RealType  B,
const RealType  C 
)
inlinestatic

◆ Min()

template<typename RealType >
RealType TMathUtil< RealType >::Min ( const RealType  A,
const RealType  B 
)
inlinestatic

◆ Min3()

template<typename RealType >
RealType TMathUtil< RealType >::Min3 ( const RealType  A,
const RealType  B,
const RealType  C 
)
inlinestatic

◆ Min3Index()

template<typename RealType >
int32 TMathUtil< RealType >::Min3Index ( const RealType  A,
const RealType  B,
const RealType  C 
)
inlinestatic

◆ MinMax()

template<typename RealType >
void TMathUtil< RealType >::MinMax ( RealType  A,
RealType  B,
RealType  C,
RealType &  MinOut,
RealType &  MaxOut 
)
inlinestatic

compute min and max of a,b,c with max 3 comparisons (sometimes 2)

◆ Pow()

template<typename RealType >
RealType TMathUtil< RealType >::Pow ( const RealType  Value,
const RealType  Power 
)
inlinestatic

◆ Round()

template<typename RealType >
RealType TMathUtil< RealType >::Round ( const RealType  Value)
inlinestatic

◆ Sign()

template<typename RealType >
RealType TMathUtil< RealType >::Sign ( const RealType  Value)
inlinestatic

◆ SignAsInt()

template<typename RealType >
int32 TMathUtil< RealType >::SignAsInt ( const RealType  Value)
inlinestatic

◆ SignNonZero()

template<typename RealType >
RealType TMathUtil< RealType >::SignNonZero ( const RealType  Value)
inlinestatic

◆ Sin()

template<typename RealType >
RealType TMathUtil< RealType >::Sin ( const RealType  Value)
inlinestatic

◆ SmoothMax()

template<typename RealType >
RealType TMathUtil< RealType >::SmoothMax ( RealType  A,
RealType  B,
RealType  BlendExtent 
)
inlinestatic

Uses a quadratic blend to smooth the max transition when A and B are less than BlendExtent apart.

◆ SmoothMin()

template<typename RealType >
RealType TMathUtil< RealType >::SmoothMin ( RealType  A,
RealType  B,
RealType  BlendExtent 
)
inlinestatic

Uses a quadratic blend to smooth the min transition when A and B are less than BlendExtent apart.

◆ Sqrt()

template<typename RealType >
RealType TMathUtil< RealType >::Sqrt ( const RealType  Value)
inlinestatic

◆ Tan()

template<typename RealType >
RealType TMathUtil< RealType >::Tan ( const RealType  Value)
inlinestatic

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