From 2b38c9c83a989ba823b188fc544271448747cfdb Mon Sep 17 00:00:00 2001 From: Andreas Rauschert <andreas.rb.rauschert@bmw.de> Date: Mon, 22 Nov 2021 21:43:06 +0100 Subject: [PATCH] Add convenience ctor for vector Signed-off-by: Andreas Rauschert <andreas.rb.rauschert@bmw.de> --- MantleAPI/include/MantleAPI/Common/vector.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MantleAPI/include/MantleAPI/Common/vector.h b/MantleAPI/include/MantleAPI/Common/vector.h index e8e5e4b7..23109ccc 100644 --- a/MantleAPI/include/MantleAPI/Common/vector.h +++ b/MantleAPI/include/MantleAPI/Common/vector.h @@ -24,6 +24,13 @@ namespace mantle_api template <typename T, class = typename std::enable_if_t<units::traits::is_unit_t<T>::value>> struct Vec3 { + Vec3() = default; + + Vec3(T x_in, T y_in, T z_in) + : x{x_in}, y{y_in}, z{z_in} + { + } + T x{0}; T y{0}; T z{0}; -- GitLab