Signed-off-by: falkTX <falktx@falktx.com>pull/282/head
@@ -219,6 +219,8 @@ public: | |||||
Size<T>& operator-=(const Size<T>& size) noexcept; | Size<T>& operator-=(const Size<T>& size) noexcept; | ||||
Size<T>& operator*=(double m) noexcept; | Size<T>& operator*=(double m) noexcept; | ||||
Size<T>& operator/=(double d) noexcept; | Size<T>& operator/=(double d) noexcept; | ||||
Size<T> operator*(double m) const noexcept; | |||||
Size<T> operator/(double m) const noexcept; | |||||
bool operator==(const Size<T>& size) const noexcept; | bool operator==(const Size<T>& size) const noexcept; | ||||
bool operator!=(const Size<T>& size) const noexcept; | bool operator!=(const Size<T>& size) const noexcept; | ||||
@@ -324,6 +324,22 @@ Size<T>& Size<T>::operator/=(double d) noexcept | |||||
return *this; | return *this; | ||||
} | } | ||||
template<typename T> | |||||
Size<T> Size<T>::operator*(const double m) const noexcept | |||||
{ | |||||
Size<T> size(fWidth, fHeight); | |||||
size *= m; | |||||
return size; | |||||
} | |||||
template<typename T> | |||||
Size<T> Size<T>::operator/(const double m) const noexcept | |||||
{ | |||||
Size<T> size(fWidth, fHeight); | |||||
size /= m; | |||||
return size; | |||||
} | |||||
template<typename T> | template<typename T> | ||||
bool Size<T>::operator==(const Size<T>& size) const noexcept | bool Size<T>::operator==(const Size<T>& size) const noexcept | ||||
{ | { | ||||