remove get
This commit is contained in:
parent
0f97358f8c
commit
595e46f6bf
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>{}));
|
||||||
|
Loading…
Reference in New Issue
Block a user