Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float CopySign
(
float X, |
Composes a floating-point value with the magnitude of X and the sign of Y. | GenericPlatform/GenericPlatformMath.h | |
static double CopySign
(
double X, |
GenericPlatform/GenericPlatformMath.h | ||
static decltype(X *Y) CopySign
(
Arg1 X, |
GenericPlatform/GenericPlatformMath.h |
CopySign(float, float)
Description
Composes a floating-point value with the magnitude of X and the sign of Y.
| Name | CopySign |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static float CopySign
(
float X,
float Y
)
CopySign(double, double)
| Name | CopySign |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h |
| Include Path | #include "GenericPlatform/GenericPlatformMath.h" |
static double CopySign
(
double X,
double Y
)
CopySign(Arg1, Arg2)
| Name | CopySign |
| 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) CopySign
(
Arg1 X,
Arg2 Y
)