diff options
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vector.h b/src/vector.h index 3360c20b..c0457bd7 100644 --- a/src/vector.h +++ b/src/vector.h @@ -182,6 +182,11 @@ class Vector float x, y, z; }; +inline bool operator == (const Vector &a, const Vector &b) +{ + return a.x == b.x && a.y == b.y && a.z == b.z; +} + /** * Appends a string representation of a vector to the output stream. */ |