Skip to content

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

@ijimo1

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

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