Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Layout/SlateRect.h |
Include |
#include "Layout/SlateRect.h" |
template<typename TransformType>
FSlateRect TransformRect
(
const TransformType & Transform,
const FSlateRect & Rect
)
Transforms a rect by the given transform, ensuring the rect does not get inverted. WARNING: this only really supports scales and offsets. Any skew or rotation that would turn this into an un-aligned rect will won't work because FSlateRect doesn't support non-axis-alignment. Instead, convert to ta FSlateRotatedRect first and transform that.