mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(vector): add operator!= for C3Vector and C3Vector
This commit is contained in:
parent
ee4612182a
commit
6f82ab3561
3 changed files with 12 additions and 0 deletions
|
|
@ -28,3 +28,7 @@ C3Vector operator+(const C3Vector& l, const C3Vector& r) {
|
|||
|
||||
return { x, y, z };
|
||||
}
|
||||
|
||||
bool operator!=(const C3Vector& l, const C3Vector& r) {
|
||||
return l.x != r.x || l.y != r.y || l.z != r.z;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,4 +22,6 @@ class C3Vector {
|
|||
|
||||
C3Vector operator+(const C3Vector& l, const C3Vector& r);
|
||||
|
||||
bool operator!=(const C3Vector& l, const C3Vector& r);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue