diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-01-28 14:59:15 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-01-28 14:59:15 +0100 |
commit | 793977c09139df30b3dcab7260ebd1f943084092 (patch) | |
tree | 50ecca2f7e1f0dcc9b1bba66d75c2abd7dcf30f0 /vector.h | |
parent | 9274355bfdbdbc32deab5505fb65ef22a3048757 (diff) |
Fixed vector addition and subtraction.
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -16,9 +16,9 @@ class Vector2 { Vector2& operator=(const Vector2& v); Vector2& operator+=(const Vector2& v); - Vector2& operator+(const Vector2& v); + Vector2 operator+(const Vector2& v); Vector2& operator-=(const Vector2& v); - Vector2& operator-(const Vector2& v); + Vector2 operator-(const Vector2& v); }; class Vector3 : public Vector2 { @@ -33,9 +33,9 @@ class Vector3 : public Vector2 { Vector3& operator=(const Vector3& v); Vector3& operator+=(const Vector3& v); - Vector3& operator+(const Vector3& v); + Vector3 operator+(const Vector3& v); Vector3& operator-=(const Vector3& v); - Vector3& operator-(const Vector3& v); + Vector3 operator-(const Vector3& v); }; class Vector4 : public Vector3 { @@ -50,9 +50,9 @@ class Vector4 : public Vector3 { Vector4& operator=(const Vector4& v); Vector4& operator+=(const Vector4& v); - Vector4& operator+(const Vector4& v); + Vector4 operator+(const Vector4& v); Vector4& operator-=(const Vector4& v); - Vector4& operator-(const Vector4& v); + Vector4 operator-(const Vector4& v); }; #endif |