Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Min of Array | GenericPlatform/GenericPlatformMath.h | ||
static T Min
(
T A, |
Returns lower value in a generic way | GenericPlatform/GenericPlatformMath.h | |
static T Min
(
T A, |
GenericPlatform/GenericPlatformMath.h | ||
static decltype(X *Y) Min
(
Arg1 X, |
GenericPlatform/GenericPlatformMath.h | ||
static decltype(X *Y) Min
(
Arg1 X, |
GenericPlatform/GenericPlatformMath.h | ||
| Min of Array | GenericPlatform/GenericPlatformMath.h | ||
| Returns the smaller of the two values (operates on each component individually) | |||
Min(const TArray< T > &)
Description
Min of Array
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<class T>
static T Min
(
const TArray < T > & Values
)
The min value found in the array or default value if the array was empty
Parameters
| Name | Remarks |
|---|---|
| Values | Array of templated type |
Min(T, T)
Description
Returns lower value in a generic way
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<typename T>
static T Min
(
T A,
T B
)
Min(T, OtherTypes...)
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<typename T, typename... OtherTypes, std::enable_if_t<((std::is_same_v< T, OtherTypes > &&...)), int >>
static T Min
(
T A,
OtherTypes... Others
)
Min(Arg1, Arg2)
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<typename Arg1, typename Arg2, std::enable_if_t<((std::is_floating_point_v< Arg1 >||std::is_floating_point_v< Arg2 >) &&!std::is_same_v< Arg1, Arg2 >), int >>
static decltype(X *Y) Min
(
Arg1 X,
Arg2 Y
)
Min(Arg1, Arg2)
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<typename Arg1, typename Arg2, std::enable_if_t<(!std::is_same_v< Arg1, Arg2 > &&std::is_signed_v< Arg1 > &&std::is_integral_v< Arg1 > &&std::is_signed_v< Arg2 > &&std::is_integral_v< Arg2 >), int >>
static decltype(X *Y) Min
(
Arg1 X,
Arg2 Y
)
Min(const TArray< T > &, int32 *)
Description
Min of Array
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
template<class T>
static T Min
(
const TArray < T > & Values,
int32 * MinIndex
)
The min value found in the array or default value if the array was empty
Parameters
| Name | Remarks |
|---|---|
| Values | Array of templated type |
| MinIndex | Optional pointer for returning the index of the minimum element, if multiple minimum elements the first index is returned |
Min(VectorRegister4Float, VectorRegister4Float)
Description
Returns the smaller of the two values (operates on each component individually)
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathVectorCommon.h.inl |
| Include Path | #include "Math/UnrealMathVectorCommon.h.inl" |
template<>
VectorRegister4Float Min
(
VectorRegister4Float A,
VectorRegister4Float B
)
Min(VectorRegister4Double, VectorRegister4Double)
| Name | Min |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathVectorCommon.h.inl |
| Include Path | #include "Math/UnrealMathVectorCommon.h.inl" |
template<>
VectorRegister4Double Min
(
VectorRegister4Double A,
VectorRegister4Double B
)