|
Rebel Fork Framework
|
Wrapped value between min and max boundaries. More...
#include <Urho3D/Math/WrappedScalar.h>
Public Member Functions | |
| WrappedScalar (T value, T minValue, T maxValue) | |
| void | Set (T value) |
| Reset value. | |
| WrappedScalarRange< T > | UpdateWrapped (T delta) |
| Add delta to the scalar, wrapping value at the boundaries. Return the range of the change. | |
| WrappedScalarRange< T > | UpdateClamped (T delta, bool returnOutOfBounds=false) |
| Add delta to the scalar, clamping value at the boundaries. Return the range of the change. Optionally returns out-of-bounds range instead of clamped one. | |
| WrappedScalar< T > | MinMaxClamped (T minValue, T maxValue) const |
| Clamp boundaries. | |
| T | Value () const |
| T | Min () const |
| T | Max () const |
| bool | operator== (const WrappedScalar< T > &rhs) const |
| bool | operator!= (const WrappedScalar< T > &rhs) const |
Private Attributes | |
| T | min_ {-M_LARGE_VALUE} |
| T | max_ {M_LARGE_VALUE} |
| T | value_ {} |
Wrapped value between min and max boundaries.