Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include |
#include "Math/UnrealMathUtility.h" |
Source |
/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static float ClampAngle
(
float AngleDegrees,
float MinAngleDegrees,
float MaxAngleDegrees
)
Clamps an arbitrary angle to be between the given angles. Will clamp to nearest boundary.
Returns clamped angle in the range -180..180.
Parameter |
Description |
---|---|
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 |