Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fixed CVector !=
  • Loading branch information
aap committed Apr 30, 2020
1 parent 0806895 commit b7141037036684e3857d785a334cfa45433e1728
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/math/Vector.h
@@ -95,6 +95,10 @@ class CVector
return x == right.x && y == right.y && z == right.z;
}

const bool operator!=(CVector const &right) {
return x != right.x || y != right.y || z != right.z;
}

bool IsZero(void) const { return x == 0.0f && y == 0.0f && z == 0.0f; }
};

0 comments on commit b714103

Please sign in to comment.