mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
feat(vector): add C2Vector::operator== for C2Vector
This commit is contained in:
parent
285073dc24
commit
bd159b5369
3 changed files with 22 additions and 0 deletions
5
tempest/vector/C2Vector.cpp
Normal file
5
tempest/vector/C2Vector.cpp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "tempest/vector/C2Vector.hpp"
|
||||
|
||||
bool C2Vector::operator==(const C2Vector& v) {
|
||||
return this->x == v.x && this->y == v.y;
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ class C2Vector {
|
|||
C2Vector(float x, float y)
|
||||
: x(x)
|
||||
, y(y) {};
|
||||
bool operator==(const C2Vector& v);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue