From 0f97358f8c7a9973ed2899fbbc169f2a93b4db65 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Thu, 24 Mar 2022 16:49:53 +0300 Subject: [PATCH] add get --- src/math/vector.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/math/vector.hpp b/src/math/vector.hpp index a0b8d37..3216d7b 100644 --- a/src/math/vector.hpp +++ b/src/math/vector.hpp @@ -37,6 +37,11 @@ namespace hack public: value_t get_value() { return value_; }; + auto get(std::size_t index) + { + return std::get(value_); + } + auto length() { return std::sqrt(length_idx(std::make_index_sequence::value>{}));