diff --git a/include/Matrix.hpp b/include/Matrix.hpp index f917014d..203bedc9 100644 --- a/include/Matrix.hpp +++ b/include/Matrix.hpp @@ -71,6 +71,10 @@ class Matrix : public ::Matrix { && m15 == other.m15; } + bool operator!=(const ::Matrix& other) { + return !(*this == other); + } + #ifndef RAYLIB_CPP_NO_MATH /** * Returns the trace of the matrix (sum of the values along the diagonal) diff --git a/include/Vector2.hpp b/include/Vector2.hpp index e173896c..c91aedda 100644 --- a/include/Vector2.hpp +++ b/include/Vector2.hpp @@ -36,6 +36,10 @@ class Vector2 : public ::Vector2 { && y == other.y; } + bool operator!=(const ::Vector2& other) { + return !(*this == other); + } + #ifndef RAYLIB_CPP_NO_MATH Vector2 Add(const ::Vector2& vector2) const { return Vector2Add(*this, vector2); diff --git a/include/Vector3.hpp b/include/Vector3.hpp index 622c08b8..e8c6ce2e 100644 --- a/include/Vector3.hpp +++ b/include/Vector3.hpp @@ -43,6 +43,10 @@ class Vector3 : public ::Vector3 { && z == other.z; } + bool operator!=(const ::Vector3& other) { + return !(*this == other); + } + #ifndef RAYLIB_CPP_NO_MATH Vector3 Add(const ::Vector3& vector3) { return Vector3Add(*this, vector3); diff --git a/include/Vector4.hpp b/include/Vector4.hpp index d7cf8c29..e3106af0 100644 --- a/include/Vector4.hpp +++ b/include/Vector4.hpp @@ -48,6 +48,10 @@ class Vector4 : public ::Vector4 { && w == other.w; } + bool operator!=(const ::Vector4& other) { + return !(*this == other); + } + inline ::Rectangle ToRectangle() { return {x, y, z, w}; }