vector: use mag2 for normalised check

This commit is contained in:
Danny Robson 2015-04-15 14:25:16 +10:00
parent e939cca6fd
commit 13abad0d43

View File

@ -79,7 +79,7 @@ template <size_t S, typename T>
bool bool
vector<S,T>::is_normalised (void) const vector<S,T>::is_normalised (void) const
{ {
return almost_equal (magnitude (), 1.f); return almost_equal (magnitude2 (), 1.f);
} }