Navigation
API > API/Plugins > API/Plugins/DisplayCluster > API/Plugins/DisplayCluster/TMarginSet
Description
Returns a copy of this margin set with each side individually clamped between the corresponding sides of the provided minimum and maximum margins.
For each side:
- Left = Clamp(Left, MinMargins.Left, MaxMargins.Left)
- Right = Clamp(Right, MinMargins.Right, MaxMargins.Right)
- Top = Clamp(Top, MinMargins.Top, MaxMargins.Top)
- Bottom = Clamp(Bottom, MinMargins.Bottom, MaxMargins.Bottom)
| Name | GetClampedPerSide |
| Type | function |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Math/MarginSet.h |
| Include Path | #include "Math/MarginSet.h" |
TMarginSet < T > GetClampedPerSide
(
const TMarginSet < T > & MinMargins,
const TMarginSet & MaxMargins
) const
A new TMarginSet with each side clamped to its respective range.
Parameters
| Name | Remarks |
|---|---|
| MinMargins | Margin set defining the minimum values per side. |
| MaxMargins | Margin set defining the maximum values per side. |