feat(srcVector): Added == and != operators (#112)

This commit is contained in:
DayibBaba 2023-04-16 20:07:38 +02:00 committed by GitHub
parent 891ad67768
commit 66a0c32e1d

View File

@ -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{};