Compare commits
2 Commits
1f5fdcc197
...
e691956223
Author | SHA1 | Date | |
---|---|---|---|
e691956223 | |||
9585f66637 |
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user