TRange::Intersection

Compute the intersection of two ranges.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Range.h

Include

#include "Math/Range.h"

Syntax

static TRange Intersection
(
    const TRange & X,
    const TRange & Y
)

Remarks

Compute the intersection of two ranges.

The intersection of two ranges is the largest range that is contained by both ranges.

Returns

The intersection, or an empty range if the ranges do not overlap.

Parameters

Parameter

Description

X

The first range.

Y

The second range.

See Also

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