NormalizedFloat
-
class NormalizedFloat
normalized floating point value of 32 bits size (-1.0 - 1.0)
Public Functions
-
inline explicit NormalizedFloat(int v)
Constructs a NormalizedFloat object and initializes its value.
- Parameters:
v – The integer value to be set.
- Throws:
std::out_of_range – If v is not compatible with the limitations of this floating point class
-
inline explicit NormalizedFloat(float v)
Constructs a NormalizedFloat object and initializes its value.
- Parameters:
v – The float value to be set.
- Throws:
std::out_of_range – If v is not compatible with the limitations of this floating point class
-
inline float getMin() const
Retrieves the minimum value for the range of this floating point.
- Returns:
The minimum value allowed for this floating point as a float.
-
inline float getMax() const
Retrieves the maximum value for the range of this floating point.
- Returns:
The maximum value allowed for this floating point as a float.
-
inline float get() const
getter for value
- Returns:
the underlying floating point type
-
inline void set(float v)
setter for value
- Parameters:
v – The float value to be set.
- Throws:
std::out_of_range – If v is not compatible with the limitations of this floating point class
-
inline explicit NormalizedFloat(int v)