summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vector.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vector.h b/src/vector.h
index d181f938..25f6c120 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -60,6 +60,14 @@ class Vector
return x == 0.0f && y == 0.0f && z == 0.0f;
}
+ Vector &operator=(const Vector &v)
+ {
+ x = v.x;
+ y = v.y;
+ z = v.z;
+ return *this;
+ }
+
/**
* Scale vector operator.
*/