Navigation
API > API/Plugins > API/Plugins/DisplayCluster > API/Plugins/DisplayCluster/TMarginSet
Description
Shrinks the given rectangle in-place by the values in this margin set. Each margin value moves the corresponding edge inward:
- Left increases Min.X
- Right decreases Max.X
- Top increases Min.Y
- Bottom decreases Max.Y
If the total margin for any axis exceeds the rectangle's size, the rectangle will collapse to a line or point. Margin values are clamped as needed to prevent the rectangle from inverting or collapsing to negative size.
| Name | ApplyClampedInsetToRect |
| Type | function |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Math/MarginSet.h |
| Include Path | #include "Math/MarginSet.h" |
template<typename IntType>
void ApplyClampedInsetToRect
(
TIntRect < IntType > & InOutRect
) const
Parameters
| Name | Remarks |
|---|---|
| InOutRect | [in,out] The rectangle to be contracted. Modified in place. |