| 39 | ~Vector2() { print_destroyed(this); } |
| 40 | |
| 41 | std::string toString() const { |
| 42 | return "[" + std::to_string(x) + ", " + std::to_string(y) + "]"; |
| 43 | } |
| 44 | |
| 45 | Vector2 operator-() const { return Vector2(-x, -y); } |
| 46 | Vector2 operator+(const Vector2 &v) const { return Vector2(x + v.x, y + v.y); } |
nothing calls this directly
no outgoing calls
no test coverage detected