From 66a0c32e1d84ffd98c1b3ee6712f4c70917cf14a Mon Sep 17 00:00:00 2001 From: DayibBaba <79384354+DayibBaba@users.noreply.github.com> Date: Sun, 16 Apr 2023 20:07:38 +0200 Subject: [PATCH] feat(srcVector): Added == and != operators (#112) --- script/scrVector.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/scrVector.hpp b/script/scrVector.hpp index 8301c4d..f3abd31 100644 --- a/script/scrVector.hpp +++ b/script/scrVector.hpp @@ -53,6 +53,16 @@ namespace rage vec.z = this->z * other; return vec; } + + bool operator==(const scrVector& other) + { + return this->x == other.x && this->y == other.y && this->z == other.z; + } + + bool operator!=(const scrVector& other) + { + return this->x != other.x || this->y != other.y || this->z != other.z; + } alignas(8) float x{}; alignas(8) float y{};