FSlateRect::IntersectionWith

Returns the rectangle that is the intersection of this rectangle and Other, as well as if they were overlapping at all.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/SlateRect.h"

Syntax

FSlateRect IntersectionWith
(
    const FSlateRect & Other,
    bool & OutOverlapping
) const

Remarks

Returns the rectangle that is the intersection of this rectangle and Other, as well as if they were overlapping at all.

Returns

Rectangle over intersection.

Parameters

Parameter

Description

Other

The other rectangle

OutOverlapping

[Out] Was there any overlap with the other rectangle.

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