MeshLib C++ Docs
Loading...
Searching...
No Matches

Common traits for (mathematical) vectors. More...

#include <MRMesh/MRVectorTraits.h>

Public Types

using BaseType = T
 The base template handles scalars (or just non-vectors).
template<typename U>
using ChangeBaseType = U
 Changes the vector element type. For scalars, replaces the whole type.

Static Public Member Functions

template<typename U>
static constexpr auto && getElem (int i, U &&value)
template<typename U = T>
static constexpr U diagonal (U v)
 Adding a template parameter to allow instantiating the rest of the class with T == void.

Static Public Attributes

static constexpr int size = 1
static constexpr bool supportNoInit = false

Detailed Description

template<typename T>
struct MR::VectorTraits< T >

Common traits for (mathematical) vectors.


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