Remove return type from range::expand
This commit is contained in:
parent
bcab28826c
commit
f1505e8b31
@ -78,7 +78,7 @@ range<T>::clamp (T val) const
|
|||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T
|
void
|
||||||
range<T>::expand (T val) {
|
range<T>::expand (T val) {
|
||||||
min = std::min (min, val);
|
min = std::min (min, val);
|
||||||
max = std::max (max, val);
|
max = std::max (max, val);
|
||||||
|
@ -47,8 +47,7 @@ namespace util {
|
|||||||
T clamp (T val) const;
|
T clamp (T val) const;
|
||||||
|
|
||||||
/// Expand the range to include this value if necessary
|
/// Expand the range to include this value if necessary
|
||||||
T expand (T val);
|
void expand (T val);
|
||||||
|
|
||||||
/// Normalise a number to [0, 1] within the range. Does not check bounds.
|
/// Normalise a number to [0, 1] within the range. Does not check bounds.
|
||||||
double normalise (T val) const;
|
double normalise (T val) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user