Commit 2b38c9c8 authored by Andreas Rauschert's avatar Andreas Rauschert
Browse files

Add convenience ctor for vector

Signed-off-by: Andreas Rauschert's avatarAndreas Rauschert <>
parent 57a2f2a5
......@@ -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};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment