Choose your operating system:
Windows
macOS
Linux
| TInterval
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Interval.h |
Include |
#include "Math/Interval.h" |
template<typename ElementType>
struct TInterval
Template for numeric interval
Name | Description | ||
---|---|---|---|
|
ElementType |
Max |
Holds the upper bound of the interval. |
|
ElementType |
Min |
Holds the lower bound of the interval. |
Name | Description | |
---|---|---|
|
TInterval() |
Default constructor. The interval is invalid |
|
TInterval ( |
Creates and initializes a new interval with the specified lower and upper bounds. |
Name | Description | ||
---|---|---|---|
|
Contains ( |
Checks whether this interval contains the specified element. |
|
|
Expand ( |
Expands this interval to both sides by the specified amount. |
|
|
Include ( |
Expands this interval if necessary to include the specified element. |
|
|
ElementType |
Interpolate ( |
Interval interpolation |
|
IsValid() |
Whether interval is valid (Min <= Max). |
|
|
ElementType |
Size() |
Computes the size of this interval. |
Name | Description | ||
---|---|---|---|
|
operator+= ( |
Offset the interval by adding X. |
|
|
operator-= ( |
Offset the interval by subtracting X. |