file
GtxIntegration.hIntegration of GLM experimental extension types.
Provides conversion for the following types. See Magnum/
Magnum type | Equivalent GLM type |
---|---|
DualQuaternion, DualQuaterniond | glm::dualquat , glm::ddualquat |
Types with extra qualifiers (such as glm::mediump_ddualquat
) are treated the same as types with no qualifier. Debug output using Corrade::
#include <Magnum/GlmIntegration/GtxIntegration.h> DualQuaternion a = DualQuaternion::translation({1.0f, 2.0f, 3.0f}); glm::dualquat b(a); Debug{} << glm::highp_ddualquat{{4.0, 1.0, 2.0, 3.0}, {8.0, 5.0, 6.0, 7.0}}; // prints ddualquat((4.000000, {1.000000, 2.000000, 3.000000}), // (8.000000, {5.000000, 6.000000, 7.000000}))
Namespaces
- namespace glm
- GLM namespace.
Functions
-
template<class T, glm::precision q>auto operator<<(Corrade::
Utility:: Debug& debug, const tdualquat<T, q>& value) -> Corrade:: Utility:: Debug& - Debug output operator for GLM dual quaternion types.