TransformRect

Transforms a rect by the given transform, ensuring the rect does not get inverted.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/SlateRect.h

Include

#include "Layout/SlateRect.h"

Syntax

template<typename TransformType>
FSlateRect TransformRect
(
    const TransformType & Transform,
    const FSlateRect & Rect
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss