TRange::Union

Return the union of two contiguous 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 TArray< TRange > Union
(
    const TRange & X,
    const TRange & Y
)

Remarks

Return the union of two contiguous ranges.

A union is a range or series of ranges that contains both ranges.

Returns

The union, or both ranges if the two ranges are not contiguous, or no ranges if both ranges are empty.

Parameters

Parameter

Description

X

The first range.

Y

The second range.

See Also