diff options
| author | 2018-08-07 14:15:56 -0400 | |
|---|---|---|
| committer | 2018-08-07 21:15:10 -0400 | |
| commit | 4e3bc377911d941b67911434140ecce1e398f5ca (patch) | |
| tree | 874440a00c5b543503d3346cd5a66482db05cf09 /src/common/vector_math.h | |
| parent | Merge pull request #971 from DarkLordZach/mbedtls-2.12.0 (diff) | |
| download | yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.gz yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.xz yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.zip | |
vector_math: Convert typedefs to type aliases
Diffstat (limited to 'src/common/vector_math.h')
| -rw-r--r-- | src/common/vector_math.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<T> operator*(const V& f, const Vec2<T>& vec) { | |||
| 175 | return Vec2<T>(f * vec.x, f * vec.y); | 175 | return Vec2<T>(f * vec.x, f * vec.y); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | typedef Vec2<float> Vec2f; | 178 | using Vec2f = Vec2<float>; |
| 179 | 179 | ||
| 180 | template <> | 180 | template <> |
| 181 | inline float Vec2<float>::Length() const { | 181 | inline float Vec2<float>::Length() const { |
| @@ -387,7 +387,7 @@ inline float Vec3<float>::Normalize() { | |||
| 387 | return length; | 387 | return length; |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | typedef Vec3<float> Vec3f; | 390 | using Vec3f = Vec3<float>; |
| 391 | 391 | ||
| 392 | template <typename T> | 392 | template <typename T> |
| 393 | class Vec4 { | 393 | class Vec4 { |
| @@ -583,7 +583,7 @@ Vec4<decltype(V{} * T{})> operator*(const V& f, const Vec4<T>& vec) { | |||
| 583 | return MakeVec(f * vec.x, f * vec.y, f * vec.z, f * vec.w); | 583 | return MakeVec(f * vec.x, f * vec.y, f * vec.z, f * vec.w); |
| 584 | } | 584 | } |
| 585 | 585 | ||
| 586 | typedef Vec4<float> Vec4f; | 586 | using Vec4f = Vec4<float>; |
| 587 | 587 | ||
| 588 | template <typename T> | 588 | template <typename T> |
| 589 | static inline decltype(T{} * T{} + T{} * T{}) Dot(const Vec2<T>& a, const Vec2<T>& b) { | 589 | static inline decltype(T{} * T{} + T{} * T{}) Dot(const Vec2<T>& a, const Vec2<T>& b) { |