mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
12 lines
224 B
C++
12 lines
224 B
C++
#pragma once
|
|
|
|
#include "GenericPlatformMath.h"
|
|
|
|
struct FMath : public FPlatformMath
|
|
{
|
|
template< class T >
|
|
static FORCEINLINE T Clamp(const T X, const T Min, const T Max)
|
|
{
|
|
return X < Min ? Min : X < Max ? X : Max;
|
|
}
|
|
}; |