Merge lp:~hacker-emmanuel/stellarium/bug_1178391 into lp:stellarium

Proposed by Emmanuel
Status: Merged
Approved by: Alexander Wolf
Approved revision: 5790
Merged at revision: 6026
Proposed branch: lp:~hacker-emmanuel/stellarium/bug_1178391
Merge into: lp:stellarium
Diff against target: 27 lines (+10/-0)
1 file modified
src/core/VecMath.hpp (+10/-0)
To merge this branch: bzr merge lp:~hacker-emmanuel/stellarium/bug_1178391
Reviewer Review Type Date Requested Status
Stellarium Pending
Review via email: mp+163209@code.launchpad.net

Description of the change

add missing definition of operator/= for Vector4 and Vector2

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/core/VecMath.hpp'
2--- src/core/VecMath.hpp 2013-05-09 13:29:35 +0000
3+++ src/core/VecMath.hpp 2013-05-09 19:40:32 +0000
4@@ -356,6 +356,11 @@
5 v[0] *= s; v[1] *= s;
6 }
7
8+template<class T> void Vector2<T>::operator/=(T s)
9+{
10+ v[0] /= s; v[1] /= s;
11+}
12+
13 template<class T> Vector2<T> Vector2<T>::operator-() const
14 {
15 return Vector2<T>(-v[0], -v[1]);
16@@ -703,6 +708,11 @@
17 v[0] *= s; v[1] *= s; v[2] *= s; v[3] *= s;
18 }
19
20+template<class T> void Vector4<T>::operator/=(T s)
21+{
22+ v[0] /= s; v[1] /= s; v[2] /= s; v[3] /= s;
23+}
24+
25 template<class T> Vector4<T> Vector4<T>::operator-() const
26 {
27 return Vector4<T>(-v[0], -v[1], -v[2], -v[3]);