TRange::Intersection

Compute the intersection of two ranges.

Choose your operating system:

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