cemyuksel / cyCodeBase

An open source programming resource intended for graphics programmers.
MIT License
271 stars 60 forks source link

Vec2/3/4::operator!=() is not the inverse of operator==() #27

Open ijimo1 opened 9 months ago

ijimo1 commented 9 months ago

For Vec2/3/4 and IVec2/3/4, operator!=() is implemented in the style of

bool Vec2::operator != (Vec2 const &p) {
   return x != p.x && y != p.y;
}

This needs ||, not &&!