Rebel Fork Framework
Urho3D::WrappedScalar< T > Class Template Reference

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.
 
Value () const
 
Min () const
 
Max () const
 
bool operator== (const WrappedScalar< T > &rhs) const
 
bool operator!= (const WrappedScalar< T > &rhs) const
 

Private Attributes

min_ {-M_LARGE_VALUE}
 
max_ {M_LARGE_VALUE}
 
value_ {}
 

Detailed Description

template<class T>
class Urho3D::WrappedScalar< T >

Wrapped value between min and max boundaries.


The documentation for this class was generated from the following file: