vector: remove redundant almost_equal definition

This commit is contained in:
Danny Robson 2016-04-22 16:16:26 +10:00
parent d034b114c7
commit 0ec92951fc

View File

@ -302,15 +302,3 @@ namespace util {
template <> vector<3,double> random (void) { util::vector<3,double> out; randomise (out.data); return out; } template <> vector<3,double> random (void) { util::vector<3,double> out; randomise (out.data); return out; }
template <> vector<4,double> random (void) { util::vector<4,double> out; randomise (out.data); return out; } template <> vector<4,double> random (void) { util::vector<4,double> out; randomise (out.data); return out; }
} }
namespace util {
template <>
bool
almost_equal [[gnu::pure]] (const util::vector2f &a, const util::vector2f &b)
{
bool (*comparator) (const float&, const float&) = almost_equal;
return std::equal (a.begin (), a.end (), b.begin (), comparator);
}
}