MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / operator-

Function operator-

source/MRViewer/MRImGuiVectorOperators.h:98–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97template <MR::ImGuiMath::detail::Vector A> [[nodiscard]] constexpr A operator+( A a ) { return a; }
98template <MR::ImGuiMath::detail::Vector A> [[nodiscard]] constexpr A operator-( A a ) { return MR::ImGuiMath::applyElementwise( std::negate{}, a ); }
99
100template <typename A, typename B> requires MR::ImGuiMath::detail::ValidOperands<A, B>
101[[nodiscard]] constexpr auto operator+( A a, B b ) { return MR::ImGuiMath::applyElementwise( std::plus{}, a, b ); }

Callers

nothing calls this directly

Calls 1

applyElementwiseFunction · 0.85

Tested by

no test coverage detected