rename vector value_type to component_type

This commit is contained in:
BlackMATov
2020-12-03 06:30:56 +07:00
parent dc05e543a4
commit 6513122fc5
4 changed files with 17 additions and 17 deletions

View File

@@ -101,7 +101,7 @@ TEST_CASE("vmath/ext") {
{
constexpr auto v = cast_to<int>(float2{1.5f});
STATIC_REQUIRE(v == int2(1));
STATIC_REQUIRE(std::is_same_v<decltype(v)::value_type, int>);
STATIC_REQUIRE(std::is_same_v<decltype(v)::component_type, int>);
}
{
constexpr auto m = cast_to<int>(float2x2{1.5f});