Magnum/Math/Swizzle.h file

Function Magnum::Math::gather(), Magnum::Math::scatter()

Contents

Namespaces

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

Functions

template<char ... components, class T>
auto gather(const T& vector) -> Implementation::TypeForSize<sizeof...(components), T>::Type constexpr
Gather Vector components.
template<char ... components, class T>
auto scatter(const T& vector, const Vector<sizeof...(components), typename T::Type>& values) -> T constexpr
Scatter Vector components.
template<char ... components, class T>
auto swizzle(const T& vector) -> Implementation::TypeForSize<sizeof...(components), T>::Type deprecated constexpr
Gather Vector components.