FSlateRect::IntersectionWith

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

Choose your operating system:

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.