Magnum/Math/Quaternion.h file

Class Magnum::Math::Quaternion, function Magnum::Math::dot(), Magnum::Math::halfAngle(), Magnum::Math::lerp(), Magnum::Math::slerp()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Math
Math library.

Classes

template<class T>
class Magnum::Math::Quaternion
Quaternion.

Functions

template<class T>
auto dot(const Quaternion<T>& a, const Quaternion<T>& b) -> T
Dot product between two quaternions.
template<class T>
auto halfAngle(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB) -> Rad<T>
Half-angle between normalized quaternions.
template<class T>
auto angle(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB) -> Rad<T> deprecated in Git master
Half-angle between normalized quaternions.
template<class T>
auto lerp(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB, T t) -> Quaternion<T>
Linear interpolation of two quaternions.
template<class T>
auto lerpShortestPath(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB, T t) -> Quaternion<T>
Linear shortest-path interpolation of two quaternions.
template<class T>
auto slerp(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB, T t) -> Quaternion<T>
Spherical linear interpolation of two quaternions.
template<class T>
auto slerpShortestPath(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB, T t) -> Quaternion<T>
Spherical linear shortest-path interpolation of two quaternions.
template<class T>
auto operator<<(Debug& debug, const Quaternion<T>& value) -> Debug&
Debug output operator.