Magnum/Math/Swizzle.h file

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

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 new in 2019.10
Gather Vector components.
template<char ... components, class T>
auto scatter(const T& vector, const Vector<sizeof...(components), typename T::Type>& values) -> T constexpr new in 2019.10
Scatter Vector components.