Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static T ClampAngle
(
T AngleDegrees, |
Clamps an arbitrary angle to be between the given angles. Will clamp to nearest boundary. | Math/UnrealMathUtility.h | |
static decltype(X *Y *Z) ClampAngle
(
Arg1 X, |
Math/UnrealMathUtility.h |
ClampAngle(T, T, T)
Description
Clamps an arbitrary angle to be between the given angles. Will clamp to nearest boundary.
| Name | ClampAngle |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Public/Math/Rotator.h |
template<typename T>
static T ClampAngle
(
T AngleDegrees,
T MinAngleDegrees,
T MaxAngleDegrees
)
Returns clamped angle in the range -180..180.
Parameters
| Name | Remarks |
|---|---|
| MinAngleDegrees | "from" angle that defines the beginning of the range of valid angles (sweeping clockwise) |
| MaxAngleDegrees | "to" angle that defines the end of the range of valid angles |
ClampAngle(Arg1, Arg2, Arg3)
| Name | ClampAngle |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename Arg1, typename Arg2, typename Arg3, std::enable_if_t<((std::is_floating_point_v< Arg1 >||std::is_floating_point_v< Arg2 >||std::is_floating_point_v< Arg3 >) &&(!std::is_same_v< Arg1, Arg2 >||!std::is_same_v< Arg2, Arg3 >||!std::is_same_v< Arg1, Arg3 >)), int >>
static decltype(X *Y *Z) ClampAngle
(
Arg1 X,
Arg2 Y,
Arg3 Z
)