neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::math::swizzle< V, A, S, Indexes > Struct Template Reference

#include <swizzle.hpp>

Public Types

typedef V vector_type
 
typedefarray_type
 
typedef array_type::value_type value_type
 

Public Member Functions

swizzleoperator= (const value_type &aRhs)
 
template<typename T , typename SFINAE = std::enable_if_t<std::is_same_v<std::decay_t<T>, swizzle_rebind_t<vector_type, S>>, sfinae>>
swizzleoperator= (const T &aRhs)
 
template<typename DestIter >
void copy (DestIter aDestination) const
 

Public Attributes

array_type v
 

Detailed Description

template<typename V, typename A, uint32_t S, uint32_t... Indexes>
struct neolib::math::swizzle< V, A, S, Indexes >

Definition at line 74 of file swizzle.hpp.

Member Typedef Documentation

◆ array_type

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
typedef A neolib::math::swizzle< V, A, S, Indexes >::array_type

Definition at line 78 of file swizzle.hpp.

◆ value_type

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
typedef array_type::value_type neolib::math::swizzle< V, A, S, Indexes >::value_type

Definition at line 79 of file swizzle.hpp.

◆ vector_type

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
typedef V neolib::math::swizzle< V, A, S, Indexes >::vector_type

Definition at line 77 of file swizzle.hpp.

Member Function Documentation

◆ copy()

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
template<typename DestIter >
void neolib::math::swizzle< V, A, S, Indexes >::copy ( DestIter  aDestination) const
inline

Definition at line 102 of file swizzle.hpp.

◆ operator=() [1/2]

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
template<typename T , typename SFINAE = std::enable_if_t<std::is_same_v<std::decay_t<T>, swizzle_rebind_t<vector_type, S>>, sfinae>>
swizzle & neolib::math::swizzle< V, A, S, Indexes >::operator= ( const T aRhs)
inline

Definition at line 94 of file swizzle.hpp.

◆ operator=() [2/2]

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
swizzle & neolib::math::swizzle< V, A, S, Indexes >::operator= ( const value_type aRhs)
inline

Definition at line 87 of file swizzle.hpp.

Member Data Documentation

◆ v

template<typename V , typename A , uint32_t S, uint32_t... Indexes>
array_type neolib::math::swizzle< V, A, S, Indexes >::v

Definition at line 141 of file swizzle.hpp.


The documentation for this struct was generated from the following file: