Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/TInterval
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/Interval.h |
| Include | #include "Math/Interval.h" |
ElementType Clamp
(
ElementType X
) const
Remarks
Clamps X to be between the interval inclusively. zero if invalid(Min > Max), clamped result otherwise
Parameters
| Name | Description |
|---|---|
| X | the element to clamp |