18 static constexpr int size = 2;
21 template <std::same_as<
float>>
25 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
29 return ( &value.x )[i];
32 template <
typename U = ImVec2>
33 static constexpr U
diagonal(
float v ) {
return U( v, v ); }
40 static constexpr int size = 4;
43 template <std::same_as<
float>>
47 [[nodiscard]]
static auto&&
getElem(
int i, U&& value )
51 return ( &value.x )[i];
54 template <
typename U = ImVec4>
55 static constexpr U
diagonal(
float v ) {
return U( v, v, v, v ); }
static auto && getElem(int i, U &&value)
Definition MRViewer/MRVectorTraits.h:47
ImVec2 ChangeBaseType
Can't change the element type...
Definition MRViewer/MRVectorTraits.h:22
static auto && getElem(int i, U &&value)
Definition MRViewer/MRVectorTraits.h:25
float BaseType
Definition MRViewer/MRVectorTraits.h:39
static constexpr int size
Definition MRMesh/MRVectorTraits.h:22
ImVec4 ChangeBaseType
Can't change the element type...
Definition MRViewer/MRVectorTraits.h:44
float BaseType
Definition MRViewer/MRVectorTraits.h:17
static constexpr U diagonal(float v)
Adding a template parameter to avoid including the whole imgui.h.
Definition MRViewer/MRVectorTraits.h:55
static constexpr U diagonal(float v)
Adding a template parameter to avoid including the whole imgui.h.
Definition MRViewer/MRVectorTraits.h:33
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Common traits for (mathematical) vectors.
Definition MRMesh/MRVectorTraits.h:18