18 static constexpr int size = 1;
28 [[nodiscard]]
static constexpr auto&&
getElem(
int i, U&& value ) { (void)i;
return value; }
30 template <
typename U = T>
31 static constexpr U
diagonal( U v ) {
return v; }
38 static constexpr int size = 2;
45 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
49 return ( &value.x )[i];
59 static constexpr int size = 3;
66 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
70 return ( &value.x )[i];
80 static constexpr int size = 4;
87 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
91 return ( &value.x )[i];
Definition MRCameraOrientationPlugin.h:8
Definition MRVector2.h:18
static constexpr Vector2 diagonal(T a) noexcept
Definition MRVector2.h:31
Definition MRMesh/MRVector3.h:19
static constexpr Vector3 diagonal(T a) noexcept
Definition MRMesh/MRVector3.h:32
Definition MRVector4.h:13
static constexpr Vector4 diagonal(T a) noexcept
Definition MRVector4.h:24
static auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:45
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:52
T BaseType
Definition MRMesh/MRVectorTraits.h:37
T BaseType
Definition MRMesh/MRVectorTraits.h:58
static auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:66
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:73
T BaseType
Definition MRMesh/MRVectorTraits.h:79
static auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:87
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:94
Definition MRMesh/MRVectorTraits.h:14
static constexpr U diagonal(U v)
Definition MRMesh/MRVectorTraits.h:31
U ChangeBaseType
Definition MRMesh/MRVectorTraits.h:23
static constexpr int size
Definition MRMesh/MRVectorTraits.h:18
static constexpr auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:28
static constexpr bool supportNoInit
Definition MRMesh/MRVectorTraits.h:19
T BaseType
Definition MRMesh/MRVectorTraits.h:17