MeshLib Documentation
Loading...
Searching...
No Matches
MR::VectorTraits< Vector2< T > > Struct Template Reference

#include <MRVectorTraits.h>

Public Types

using BaseType = T
 
template<typename U >
using ChangeBaseType = Vector2<U>
 

Static Public Member Functions

template<typename U >
static auto && getElem (int i, U &&value)
 
static constexpr auto diagonal (T v)
 

Static Public Attributes

static constexpr int size = 2
 
static constexpr bool supportNoInit = true
 

Member Typedef Documentation

◆ BaseType

template<typename T >
using MR::VectorTraits< Vector2< T > >::BaseType = T

◆ ChangeBaseType

template<typename T >
template<typename U >
using MR::VectorTraits< Vector2< T > >::ChangeBaseType = Vector2<U>

Member Function Documentation

◆ diagonal()

template<typename T >
static constexpr auto MR::VectorTraits< Vector2< T > >::diagonal ( T v)
inlinestaticconstexpr

◆ getElem()

template<typename T >
template<typename U >
static auto && MR::VectorTraits< Vector2< T > >::getElem ( int i,
U && value )
inlinestaticnodiscard

Member Data Documentation

◆ size

template<typename T >
int MR::VectorTraits< Vector2< T > >::size = 2
staticconstexpr

◆ supportNoInit

template<typename T >
bool MR::VectorTraits< Vector2< T > >::supportNoInit = true
staticconstexpr

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