Ark Server API (ASA) - Wiki
|
#include <Interval.h>
Public Member Functions | |
TInterval () | |
TInterval (ElementType InMin, ElementType InMax) | |
void | operator+= (ElementType X) |
void | operator-= (ElementType X) |
ElementType | Size () const |
bool | IsValid () const |
bool | Contains (const ElementType &Element) const |
void | Expand (ElementType ExpandAmount) |
void | Include (ElementType X) |
ElementType | Interpolate (float Alpha) const |
Public Attributes | |
ElementType | Min |
ElementType | Max |
Friends | |
TInterval | Intersect (const TInterval &A, const TInterval &B) |
class FArchive & | operator<< (class FArchive &Ar, TInterval &Interval) |
uint32 | GetTypeHash (const TInterval &Interval) |
Template for numeric interval
Definition at line 32 of file Interval.h.
|
inline |
|
inline |
Creates and initializes a new interval with the specified lower and upper bounds.
InMin | The lower bound of the constructed interval. |
InMax | The upper bound of the constructed interval. |
Definition at line 58 of file Interval.h.
|
inline |
Checks whether this interval contains the specified element.
Element | The element to check. |
Definition at line 121 of file Interval.h.
|
inline |
Expands this interval to both sides by the specified amount.
ExpandAmount | The amount to expand by. |
Definition at line 131 of file Interval.h.
Expands this interval if necessary to include the specified element.
X | The element to include. |
Definition at line 145 of file Interval.h.
|
inline |
Interval interpolation
Alpha | interpolation amount |
Definition at line 172 of file Interval.h.
Whether interval is valid (Min <= Max).
Definition at line 110 of file Interval.h.
|
inline |
|
inline |
Offset the interval by subtracting X.
X | The offset. |
Definition at line 84 of file Interval.h.
Computes the size of this interval.
Definition at line 100 of file Interval.h.
|
friend |
Gets the hash for the specified interval.
Interval | The Interval to get the hash for. |
Definition at line 219 of file Interval.h.
|
friend |
Calculates the intersection of two intervals.
A | The first interval. |
B | The second interval. |
Definition at line 191 of file Interval.h.
|
friend |
Serializes the interval.
Ar | The archive to serialize into. |
Interval | The interval to serialize. |
Definition at line 208 of file Interval.h.
Holds the upper bound of the interval.
Definition at line 38 of file Interval.h.
Holds the lower bound of the interval.
Definition at line 35 of file Interval.h.