|
|
@@ -379,7 +379,7 @@ namespace detail
|
|
|
// -- Binary operators --
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
- GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, T scalar);
|
|
|
+ GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, const T& scalar);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, tvec1<T, P> const & scalar);
|
|
|
@@ -394,7 +394,7 @@ namespace detail
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
- GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, T scalar);
|
|
|
+ GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, const T& scalar);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, tvec1<T, P> const & scalar);
|
|
|
@@ -409,7 +409,7 @@ namespace detail
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
- GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, T scalar);
|
|
|
+ GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, const T& scalar);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, tvec1<T, P> const & scalar);
|
|
|
@@ -424,7 +424,7 @@ namespace detail
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
- GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, T scalar);
|
|
|
+ GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, const T& scalar);
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, tvec1<T, P> const & scalar);
|