0.2.0
Loading...
Searching...
No Matches
ImGui.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
16#include <imgui.h>
17
22constexpr ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs)
23{
24 return { lhs.x + rhs.x,
25 lhs.y + rhs.y,
26 lhs.z + rhs.z,
27 lhs.w + rhs.w };
28}
29
34constexpr ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs)
35{
36 return { lhs.x - rhs.x,
37 lhs.y - rhs.y,
38 lhs.z - rhs.z,
39 lhs.w - rhs.w };
40}
41
46constexpr ImVec4 operator*(const float& lhs, const ImVec4& rhs)
47{
48 return { lhs * rhs.x,
49 lhs * rhs.y,
50 lhs * rhs.z,
51 lhs * rhs.w };
52}
53
58constexpr ImVec4 operator*(const ImVec4& lhs, const float& rhs)
59{
60 return { lhs.x * rhs,
61 lhs.y * rhs,
62 lhs.z * rhs,
63 lhs.w * rhs };
64}
65
70constexpr ImVec4 operator/(const ImVec4& lhs, const float& rhs)
71{
72 return { lhs.x / rhs,
73 lhs.y / rhs,
74 lhs.z / rhs,
75 lhs.w / rhs };
76}
constexpr ImVec4 operator+(const ImVec4 &lhs, const ImVec4 &rhs)
Add operator.
Definition ImGui.hpp:22
constexpr ImVec4 operator*(const float &lhs, const ImVec4 &rhs)
Scalar multiplication operator.
Definition ImGui.hpp:46
constexpr ImVec4 operator-(const ImVec4 &lhs, const ImVec4 &rhs)
Subtract operator.
Definition ImGui.hpp:34
constexpr ImVec4 operator/(const ImVec4 &lhs, const float &rhs)
Scalar multiplication operator.
Definition ImGui.hpp:70