13 template<
u8... Components>
18 template<
u32 Size,
typename T,
u8... Components>
21 return { (Components >= Size ? T{} :
vec.v[0][Components])... };
Definition swizzle.hxx:11
Definition algorithm.hxx:8
mat< Size, 1, T > vec
Definition vector.hxx:172
static constexpr swizzle_definitions sw
Definition swizzle.hxx:59
constexpr auto operator|(mat< Size, 1, T > vec, detail_math::swizzle< Components... >) noexcept -> mat< sizeof...(Components), 1, T >
Definition swizzle.hxx:19
std::uint32_t u32
Definition types.hxx:26
std::uint8_t u8
Definition types.hxx:24
Definition swizzle.hxx:14
Definition swizzle.hxx:25
static constexpr auto xx
Definition swizzle.hxx:29
static constexpr auto y
Definition swizzle.hxx:35
static constexpr auto xyzw
Definition swizzle.hxx:47
static constexpr auto wwww
Definition swizzle.hxx:42
static constexpr auto yy
Definition swizzle.hxx:34
static constexpr auto x
Definition swizzle.hxx:30
static constexpr auto yx
Definition swizzle.hxx:54
static constexpr auto zzzz
Definition swizzle.hxx:37
static constexpr auto yyy
Definition swizzle.hxx:33
static constexpr auto zyx
Definition swizzle.hxx:53
static constexpr auto www
Definition swizzle.hxx:43
static constexpr auto zx
Definition swizzle.hxx:55
static constexpr auto xxxx
Definition swizzle.hxx:27
static constexpr auto w
Definition swizzle.hxx:45
static constexpr auto zz
Definition swizzle.hxx:39
static constexpr auto ww
Definition swizzle.hxx:44
static constexpr auto xyz
Definition swizzle.hxx:48
static constexpr auto xy
Definition swizzle.hxx:49
static constexpr auto yyyy
Definition swizzle.hxx:32
static constexpr auto xz
Definition swizzle.hxx:50
static constexpr auto wzyx
Definition swizzle.hxx:52
static constexpr auto xxx
Definition swizzle.hxx:28
static constexpr auto zzz
Definition swizzle.hxx:38
static constexpr auto z
Definition swizzle.hxx:40