X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvector.cpp;h=e992bbffd53aa5496bffde85c0ff6b543f4891fd;hb=d549bfdc8c872b966b9d787c00e5e8027366093c;hp=53cdbee39ceaba9938ab3b0c82375d640f712833;hpb=043ecf4d074909ba2f7f53237962f9eaa72f19c2;p=architektonas diff --git a/src/vector.cpp b/src/vector.cpp index 53cdbee..e992bbf 100644 --- a/src/vector.cpp +++ b/src/vector.cpp @@ -151,6 +151,17 @@ Vector& Vector::operator-=(double const v) return *this; } +// Check for equality +bool Vector::operator==(Vector const v) +{ + return (x == v.x && y == v.y && z == v.z ? true : false); +} + +// Check for inequality +bool Vector::operator!=(Vector const v) +{ + return (x != v.x || y != v.y || z != v.z ? true : false); +} Vector Vector::Unit(void) {