Skip to content

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

Description

@ijimo1

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 &&!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions