From 4e3bc377911d941b67911434140ecce1e398f5ca Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Aug 2018 14:15:56 -0400 Subject: vector_math: Convert typedefs to type aliases --- src/common/vector_math.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/vector_math.h b/src/common/vector_math.h index cca43bd4c..108399ae8 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -175,7 +175,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 { @@ -387,7 +387,7 @@ inline float Vec3::Normalize() { return length; } -typedef Vec3 Vec3f; +using Vec3f = Vec3; template class Vec4 { @@ -583,7 +583,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) { -- cgit v1.2.3