feat(srcVector): Added == and != operators (#112)
This commit is contained in:
parent
4f76d41ff4
commit
57548ccd87
@ -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{};
|
||||
|
Loading…
Reference in New Issue
Block a user