| 2423 | #ifdef IMGUI_DEFINE_MATH_OPERATORS |
| 2424 | #define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED |
| 2425 | IM_MSVC_RUNTIME_CHECKS_OFF |
| 2426 | static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } |
| 2427 | static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } |
| 2428 | static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } |
| 2429 | static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } |