summaryrefslogtreecommitdiff
path: root/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'vector.h')
-rw-r--r--vector.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vector.h b/vector.h
index 8d85684..a74fe8c 100644
--- a/vector.h
+++ b/vector.h
@@ -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