From 595e46f6bf0ef5711e8fea674cefa4813043c793 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Thu, 24 Mar 2022 17:03:37 +0300 Subject: [PATCH] remove get --- bin/main.cpp | 3 +++ src/math/vector.hpp | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/main.cpp b/bin/main.cpp index b44d787..c5290e2 100644 --- a/bin/main.cpp +++ b/bin/main.cpp @@ -128,5 +128,8 @@ int main(int argc, char *argv[]) hack::vector lerp_1 { 1, 2, 3 }; hack::vector lerp_2 { 5, 6, 7 }; hack::log()("lerp", lerp_1.lerp(lerp_2, 0.75f)); + + auto [x, y, z] = lerp_1.get_value(); + hack::log()("get", x, y, z); } } diff --git a/src/math/vector.hpp b/src/math/vector.hpp index 3216d7b..a0b8d37 100644 --- a/src/math/vector.hpp +++ b/src/math/vector.hpp @@ -37,11 +37,6 @@ 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>{}));