Added unary + operator #435

This commit is contained in:
Christophe Riccio
2015-10-17 04:11:52 +02:00
parent 7db048b851
commit 1709e9abca
31 changed files with 150 additions and 20 deletions

View File

@@ -149,6 +149,9 @@ namespace glm
// -- Unary bit operators --
template <typename T, precision P>
GLM_FUNC_DECL tquat<T, P> operator+(tquat<T, P> const & q);
template <typename T, precision P>
GLM_FUNC_DECL tquat<T, P> operator-(tquat<T, P> const & q);

View File

@@ -296,6 +296,12 @@ namespace detail
// -- Unary bit operators --
template <typename T, precision P>
GLM_FUNC_QUALIFIER tquat<T, P> operator+(tquat<T, P> const & q)
{
return q;
}
template <typename T, precision P>
GLM_FUNC_QUALIFIER tquat<T, P> operator-(tquat<T, P> const & q)
{