Magnum/Math/Quaternion.h file

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

Contents

Namespaces

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

Classes

template<class T>
class Magnum::Math::Quaternion
Quaternion.
template<class T>
struct Corrade::Utility::ConfigurationValue<Magnum::Math::Quaternion<T>>
Configuration value parser and writer.

Functions

template<class T>
auto dot(const Quaternion<T>& a, const Quaternion<T>& b) -> T
Dot product between two quaternions.
template<class T>
auto angle(const Quaternion<T>& normalizedA, const Quaternion<T>& normalizedB) -> Rad<T>
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<<(Corrade::Utility::Debug& debug, const Quaternion<T>& value) -> Corrade::Utility::Debug&
Debug output operator.