vector: remove redundant almost_equal definition
This commit is contained in:
parent
d034b114c7
commit
0ec92951fc
12
vector.cpp
12
vector.cpp
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user