18 static constexpr int size = 1;
28 [[nodiscard]]
static constexpr auto&&
getElem(
int i, U&& value ) { (void)i;
return value; }
30 static constexpr T
diagonal( T v ) {
return v; }
37 static constexpr int size = 2;
44 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
48 return ( &value.x )[i];
58 static constexpr int size = 3;
65 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
69 return ( &value.x )[i];
79 static constexpr int size = 4;
86 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
90 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:44
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:51
T BaseType
Definition MRMesh/MRVectorTraits.h:36
T BaseType
Definition MRMesh/MRVectorTraits.h:57
static auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:65
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:72
T BaseType
Definition MRMesh/MRVectorTraits.h:78
static auto && getElem(int i, U &&value)
Definition MRMesh/MRVectorTraits.h:86
static constexpr auto diagonal(T v)
Definition MRMesh/MRVectorTraits.h:93
Definition MRMesh/MRVectorTraits.h:14
U ChangeBaseType
Definition MRMesh/MRVectorTraits.h:23
static constexpr T diagonal(T v)
Definition MRMesh/MRVectorTraits.h:30
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