mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
Fixed slerp
This commit is contained in:
parent
3487ff30a4
commit
d815607abb
@ -147,6 +147,20 @@ namespace detail{
|
|||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
// tquat<valType> external operators
|
// tquat<valType> external operators
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
GLM_FUNC_QUALIFIER detail::tquat<T> operator*
|
||||||
|
(
|
||||||
|
detail::tquat<T> const & q,
|
||||||
|
detail::tquat<T> const & p
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return detail::tquat<T>(
|
||||||
|
q.w + p.w,
|
||||||
|
q.x + p.x,
|
||||||
|
q.y + p.y,
|
||||||
|
q.z + p.z);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_QUALIFIER detail::tquat<T> operator-
|
GLM_FUNC_QUALIFIER detail::tquat<T> operator-
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user