Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetMathLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
static double ClampAngle
&40;
double AngleDegrees,
double MinAngleDegrees,
double MaxAngleDegrees
&41;
Remarks
Clamps an arbitrary angle to be between the given angles. Will clamp to nearest boundary. Returns clamped angle in the range -180..180.
Parameters
| Name | 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 |