remove get

This commit is contained in:
chatlanin 2022-03-24 17:03:37 +03:00
parent 0f97358f8c
commit 595e46f6bf
2 changed files with 3 additions and 5 deletions

View File

@ -128,5 +128,8 @@ int main(int argc, char *argv[])
hack::vector<int, int, int> lerp_1 { 1, 2, 3 }; hack::vector<int, int, int> lerp_1 { 1, 2, 3 };
hack::vector<int, int, int> lerp_2 { 5, 6, 7 }; hack::vector<int, int, int> lerp_2 { 5, 6, 7 };
hack::log()("lerp", lerp_1.lerp(lerp_2, 0.75f)); hack::log()("lerp", lerp_1.lerp(lerp_2, 0.75f));
auto [x, y, z] = lerp_1.get_value();
hack::log()("get", x, y, z);
} }
} }

View File

@ -37,11 +37,6 @@ namespace hack
public: public:
value_t get_value() { return value_; }; value_t get_value() { return value_; };
auto get(std::size_t index)
{
return std::get<index>(value_);
}
auto length() auto length()
{ {
return std::sqrt(length_idx(std::make_index_sequence<std::tuple_size<value_t>::value>{})); return std::sqrt(length_idx(std::make_index_sequence<std::tuple_size<value_t>::value>{}));