diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 1d7ea14da..19623e971 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -184,7 +184,7 @@ Vec2 operator*(const V& f, const Vec2& vec) { return Vec2(f * vec.x, f * vec.y); } -typedef Vec2 Vec2f; +using Vec2f = Vec2; template <> inline float Vec2::Length() const { @@ -406,7 +406,7 @@ inline float Vec3::Normalize() { return length; } -typedef Vec3 Vec3f; +using Vec3f = Vec3; template class Vec4 { @@ -613,7 +613,7 @@ Vec4 operator*(const V& f, const Vec4& vec) { return MakeVec(f * vec.x, f * vec.y, f * vec.z, f * vec.w); } -typedef Vec4 Vec4f; +using Vec4f = Vec4; template static inline decltype(T{} * T{} + T{} * T{}) Dot(const Vec2& a, const Vec2& b) {