summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-07 20:15:56 +0200
committerLioncash <mathew1800@gmail.com>2018-08-08 03:15:10 +0200
commit4e3bc377911d941b67911434140ecce1e398f5ca (patch)
tree874440a00c5b543503d3346cd5a66482db05cf09 /src/common
parentMerge pull request #971 from DarkLordZach/mbedtls-2.12.0 (diff)
downloadyuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.gz
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.bz2
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.lz
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.xz
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.tar.zst
yuzu-4e3bc377911d941b67911434140ecce1e398f5ca.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/vector_math.h6
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) {
return Vec2<T>(f * vec.x, f * vec.y);
}
-typedef Vec2<float> Vec2f;
+using Vec2f = Vec2<float>;
template <>
inline float Vec2<float>::Length() const {
@@ -387,7 +387,7 @@ inline float Vec3<float>::Normalize() {
return length;
}
-typedef Vec3<float> Vec3f;
+using Vec3f = Vec3<float>;
template <typename T>
class Vec4 {
@@ -583,7 +583,7 @@ Vec4<decltype(V{} * T{})> operator*(const V& f, const Vec4<T>& vec) {
return MakeVec(f * vec.x, f * vec.y, f * vec.z, f * vec.w);
}
-typedef Vec4<float> Vec4f;
+using Vec4f = Vec4<float>;
template <typename T>
static inline decltype(T{} * T{} + T{} * T{}) Dot(const Vec2<T>& a, const Vec2<T>& b) {