Skip to content

Commit

Permalink
Fix operator-(), add operator+()
Browse files Browse the repository at this point in the history
  • Loading branch information
kankaristo authored and Groovounet committed Mar 19, 2016
1 parent c770057 commit ad9bfff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion glm/gtx/dual_quaternion.inl
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,17 @@ namespace glm
// -- Unary bit operators --

template <typename T, precision P>
GLM_FUNC_QUALIFIER tdualquat<T, P> operator-(tdualquat<T, P> const & q)
GLM_FUNC_QUALIFIER tdualquat<T, P> operator+(tdualquat<T, P> const & q)
{
return q;
}

template <typename T, precision P>
GLM_FUNC_QUALIFIER tdualquat<T, P> operator-(tdualquat<T, P> const & q)
{
return tdualquat<T, P>(-q.real, -q.dual);
}

// -- Binary operators --

template <typename T, precision P>
Expand Down

0 comments on commit ad9bfff

Please sign in to comment.