Math/Vector[2|3]: Removed Distancef and made Distance templated

This commit is contained in:
Jérôme Leclercq
2018-07-02 18:13:14 +02:00
parent 7da0fffe07
commit e4b67019cb
6 changed files with 39 additions and 57 deletions

View File

@@ -18,14 +18,14 @@ TEST_CASE("Apply", "[CORE][ALGORITHM]")
REQUIRE(result == (Nz::Vector2<int>::Unit() * 2));
}
SECTION("Apply member function to vector2")
/*SECTION("Apply member function to vector2")
{
Nz::Vector2<int> vector = Nz::Vector2<int>::Unit();
int result = Nz::Apply(vector, &Nz::Vector2<int>::Distance, std::make_tuple(vector));
int result = Nz::Apply(vector, (int(Nz::Vector2<int>::*)(const Nz::Vector2<int>&)) &Nz::Vector2<int>::Distance<int>, std::make_tuple(vector));
REQUIRE(result == 0);
}
}*/
}
TEST_CASE("ComputeHash", "[CORE][ALGORITHM]")