Compare commits

..

2 Commits

2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public:
inline constexpr typename mat<3, 3, T>::row_type const &
operator[](int i) const;
void operator=(const mat<3, 3, T>&) = delete;
//void operator=(const mat<3, 3, T>&) = delete;
};

View File

@ -18,7 +18,8 @@ inline constexpr T magnitude_squared(vec<L, T> const& v)
template <int L, typename T>
inline constexpr vec<3, T> normalize(vec<L, T> const& v)
{
return v / magnitude(v);
T d = 1.0f / magnitude(v);
return v * d;
}
template <int L, typename T>