You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
201 B
C++
16 lines
201 B
C++
3 months ago
|
#ifndef VEC2_HPP
|
||
|
#define VEC2_HPP
|
||
|
|
||
|
struct Vec2 {
|
||
|
float x, y;
|
||
|
|
||
|
auto& operator+=(const Vec2& o) noexcept {
|
||
|
x += o.x;
|
||
|
y += o.y;
|
||
|
return *this;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif // VEC2_HPP
|
||
|
|