diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-30 12:39:55 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-04-30 14:09:58 +0300 |
commit | 30b4e57828acc1e2304373f9c8e4caecc39a3803 (patch) | |
tree | 3209f61295e81fc4f83d1f8984addfc2bee7e7bf /src/mbgl/util/mat3.hpp | |
parent | 0ed719e0d6ad07f68b7c5fb879b72dad70e71355 (diff) | |
download | qtlocation-mapboxgl-30b4e57828acc1e2304373f9c8e4caecc39a3803.tar.gz |
[core] Fix rest of 'brace initialization' errors
Diffstat (limited to 'src/mbgl/util/mat3.hpp')
-rw-r--r-- | src/mbgl/util/mat3.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/util/mat3.hpp b/src/mbgl/util/mat3.hpp index 6b2e61a006..9690bab00a 100644 --- a/src/mbgl/util/mat3.hpp +++ b/src/mbgl/util/mat3.hpp @@ -33,7 +33,7 @@ using vec3i = std::array<int, 3>; using mat3 = std::array<double, 9>; inline vec3 vec3Cross(const vec3& a, const vec3& b) { - return vec3{a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]}; + return vec3{{a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]}}; } inline double vec3Dot(const vec3& a, const vec3& b) { @@ -49,7 +49,7 @@ inline double vec3Length(const vec3& a) { } inline vec3 vec3Scale(const vec3& a, double s) { - return vec3{a[0] * s, a[1] * s, a[2] * s}; + return vec3{{a[0] * s, a[1] * s, a[2] * s}}; } inline vec3 vec3Normalize(const vec3& a) { @@ -57,7 +57,7 @@ inline vec3 vec3Normalize(const vec3& a) { } inline vec3 vec3Sub(const vec3& a, const vec3& b) { - return vec3{a[0] - b[0], a[1] - b[1], a[2] - b[2]}; + return vec3{{a[0] - b[0], a[1] - b[1], a[2] - b[2]}}; } namespace matrix { |