3#include <Foundation/Math/Math.h>
43 Type m_StartValue = Type();
44 Type m_EndValue = Type();
50#include <Foundation/Types/Implementation/Interval_inl.h>
Represents an interval with a start and an end value.
Definition Interval.h:8
constexpr plInterval()=default
The default constructor initializes the two values to zero.
void ClampToIntervalAdjustEnd(Type minValue, Type maxValue, Type minimumSeparation=Type())
Adjusts the start and end value to be within the given range. Prefers to adjust the end value,...
Definition Interval_inl.h:31
void SetStartAdjustEnd(Type value)
Sets the start value. If necessary, the end value will adjusted to not be lower than the start value.
Definition Interval_inl.h:17
void ClampToIntervalAdjustStart(Type minValue, Type maxValue, Type minimumSeparation=Type())
Adjusts the start and end value to be within the given range. Prefers to adjust the start value,...
Definition Interval_inl.h:41
void SetEndAdjustStart(Type value)
Sets the end value. If necessary, the start value will adjusted to not be higher than the end value.
Definition Interval_inl.h:24
Type GetSeparation() const
Returns how much the start and and value are separated from each other.
Definition Interval_inl.h:51