15 static constexpr int size = 2;
18 template <std::same_as<
float>>
22 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
26 return ( &value.x )[i];
29 template <
typename U = ImVec2>
30 static constexpr U
diagonal(
float v ) {
return U( v, v ); }
37 static constexpr int size = 4;
40 template <std::same_as<
float>>
44 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
48 return ( &value.x )[i];
51 template <
typename U = ImVec4>
52 static constexpr U
diagonal(
float v ) {
return U( v, v, v, v ); }
Definition MRCameraOrientationPlugin.h:8
ImVec2 ChangeBaseType
Definition MRViewer/MRVectorTraits.h:19
static auto && getElem(int i, U &&value)
Definition MRViewer/MRVectorTraits.h:22
float BaseType
Definition MRViewer/MRVectorTraits.h:14
static constexpr U diagonal(float v)
Definition MRViewer/MRVectorTraits.h:30
static auto && getElem(int i, U &&value)
Definition MRViewer/MRVectorTraits.h:44
float BaseType
Definition MRViewer/MRVectorTraits.h:36
ImVec4 ChangeBaseType
Definition MRViewer/MRVectorTraits.h:41
static constexpr U diagonal(float v)
Definition MRViewer/MRVectorTraits.h:52
Definition MRMesh/MRVectorTraits.h:14
static constexpr int size
Definition MRMesh/MRVectorTraits.h:18