Adding tests and fixing has components

This commit is contained in:
Zoe Roux
2021-05-17 14:58:43 +02:00
parent e98a73f2ea
commit 6ba5ceddd6
5 changed files with 34 additions and 9 deletions
+10
View File
@@ -35,6 +35,16 @@ namespace WAL
//! @brief A default destructor
~Vector3() = default;
bool operator==(const Vector3<T> &other) const
{
return this->x == other.x && this->y == other.y && this->z == other.z;
}
bool operator!=(const Vector3<T> &other) const
{
return !this->operator==(other);
}
template<typename T2>
Vector3<T> &operator+=(const Vector3<T2> &vec)
{