UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnrealMath.cpp File Reference
#include "Math/UnrealMath.h"
#include "Stats/Stats.h"
#include "Math/RandomStream.h"
#include "UObject/PropertyPortFlags.h"
#include "Math/IntRect.h"
#include "Math/Matrix.h"
#include "Math/Quat.h"
#include "Math/Vector.h"
#include "Math/Vector2D.h"
#include "Math/Vector4.h"

Classes

struct  SegmentDistToSegment_Solver< T >
 

Namespaces

namespace  UE
 
namespace  UE::Math
 
namespace  FMathPerlinHelpers
 

Functions

 DEFINE_LOG_CATEGORY (LogUnrealMath)
 
template<typename T >
FORCEINLINE_DEBUGGABLE TQuat< T > UE::Math::FindBetween_Helper (const TVector< T > &A, const TVector< T > &B, T NormAB)
 
void CORE_API CurveFloatFindIntervalBounds (const FInterpCurvePoint< float > &Start, const FInterpCurvePoint< float > &End, float &CurrentMin, float &CurrentMax)
 
void CORE_API CurveVector2DFindIntervalBounds (const FInterpCurvePoint< FVector2D > &Start, const FInterpCurvePoint< FVector2D > &End, FVector2D &CurrentMin, FVector2D &CurrentMax)
 
void CORE_API CurveVectorFindIntervalBounds (const FInterpCurvePoint< FVector > &Start, const FInterpCurvePoint< FVector > &End, FVector &CurrentMin, FVector &CurrentMax)
 
void CORE_API CurveTwoVectorsFindIntervalBounds (const FInterpCurvePoint< FTwoVectors > &Start, const FInterpCurvePoint< FTwoVectors > &End, FTwoVectors &CurrentMin, FTwoVectors &CurrentMax)
 
void CORE_API CurveLinearColorFindIntervalBounds (const FInterpCurvePoint< FLinearColor > &Start, const FInterpCurvePoint< FLinearColor > &End, FLinearColor &CurrentMin, FLinearColor &CurrentMax)
 
CORE_API float ClampFloatTangent (float PrevPointVal, float PrevTime, float CurPointVal, float CurTime, float NextPointVal, float NextTime)
 
float Val (const FString &Value)
 
FString GrabChar (FString *pStr)
 
bool SubEval (FString *pStr, float *pResult, int32 Prec)
 
FORCEINLINE float FMathPerlinHelpers::Grad1 (int32 Hash, float X)
 
FORCEINLINE float FMathPerlinHelpers::Grad2 (int32 Hash, float X, float Y)
 
FORCEINLINE float FMathPerlinHelpers::Grad3 (int32 Hash, float X, float Y, float Z)
 
FORCEINLINE float FMathPerlinHelpers::SmoothCurve (float X)
 

Function Documentation

◆ ClampFloatTangent()

CORE_API float ClampFloatTangent ( float  PrevPointVal,
float  PrevTime,
float  CurPointVal,
float  CurTime,
float  NextPointVal,
float  NextTime 
)

Clamps a tangent formed by the specified control point values

◆ CurveFloatFindIntervalBounds()

void CORE_API CurveFloatFindIntervalBounds ( const FInterpCurvePoint< float > &  Start,
const FInterpCurvePoint< float > &  End,
float CurrentMin,
float CurrentMax 
)

Calculate bounds of float intervals

Parameters
Startinterp curve point at Start
Endinterp curve point at End
CurrentMinInput and Output could be updated if needs new interval minimum bound
CurrentMaxInput and Output could be updated if needs new interval maximmum bound

◆ CurveLinearColorFindIntervalBounds()

void CORE_API CurveLinearColorFindIntervalBounds ( const FInterpCurvePoint< FLinearColor > &  Start,
const FInterpCurvePoint< FLinearColor > &  End,
FLinearColor CurrentMin,
FLinearColor CurrentMax 
)

Calculate bounds of color intervals

Parameters
Startinterp curve point at Start
Endinterp curve point at End
CurrentMinInput and Output could be updated if needs new interval minimum bound
CurrentMaxInput and Output could be updated if needs new interval maximmum bound

◆ CurveTwoVectorsFindIntervalBounds()

void CORE_API CurveTwoVectorsFindIntervalBounds ( const FInterpCurvePoint< FTwoVectors > &  Start,
const FInterpCurvePoint< FTwoVectors > &  End,
FTwoVectors CurrentMin,
FTwoVectors CurrentMax 
)

Calculate bounds of twovector intervals

Parameters
Startinterp curve point at Start
Endinterp curve point at End
CurrentMinInput and Output could be updated if needs new interval minimum bound
CurrentMaxInput and Output could be updated if needs new interval maximmum bound

◆ CurveVector2DFindIntervalBounds()

void CORE_API CurveVector2DFindIntervalBounds ( const FInterpCurvePoint< FVector2D > &  Start,
const FInterpCurvePoint< FVector2D > &  End,
FVector2D CurrentMin,
FVector2D CurrentMax 
)

Calculate bounds of 2D vector intervals

Parameters
Startinterp curve point at Start
Endinterp curve point at End
CurrentMinInput and Output could be updated if needs new interval minimum bound
CurrentMaxInput and Output could be updated if needs new interval maximmum bound

◆ CurveVectorFindIntervalBounds()

void CORE_API CurveVectorFindIntervalBounds ( const FInterpCurvePoint< FVector > &  Start,
const FInterpCurvePoint< FVector > &  End,
FVector CurrentMin,
FVector CurrentMax 
)

Calculate bounds of vector intervals

Parameters
Startinterp curve point at Start
Endinterp curve point at End
CurrentMinInput and Output could be updated if needs new interval minimum bound
CurrentMaxInput and Output could be updated if needs new interval maximmum bound

◆ DEFINE_LOG_CATEGORY()

DEFINE_LOG_CATEGORY ( LogUnrealMath  )

◆ GrabChar()

FString GrabChar ( FString *  pStr)

◆ SubEval()

bool SubEval ( FString *  pStr,
float pResult,
int32  Prec 
)

◆ Val()

float Val ( const FString &  Value)

Converts a string to it's numeric equivalent, ignoring whitespace. "123 45" - becomes 12,345

Parameters
ValueThe string to convert.
Returns
The converted value.