#include "Vector2.h" namespace crepe { template Vector2 Vector2::operator-(const Vector2 & other) const { return {x - other.x, y - other.y}; } template Vector2 Vector2::operator-(T scalar) const { return {x - scalar, y - scalar}; } template Vector2 Vector2::operator+(const Vector2 & other) const { return {x + other.x, y + other.y}; } template Vector2 Vector2::operator+(T scalar) const { return {x + scalar, y + scalar}; } template Vector2 Vector2::operator*(const Vector2 & other) const { return {x * other.x, y * other.y}; } template Vector2 Vector2::operator*(T scalar) const { return {x * scalar, y * scalar}; } template Vector2 Vector2::operator/(const Vector2 & other) const { return {x / other.x, y / other.y}; } template Vector2 Vector2::operator/(T scalar) const { return {x / scalar, y / scalar}; } template Vector2 & Vector2::operator+=(const Vector2 & other) { x += other.x; y += other.y; return *this; } template Vector2 & Vector2::operator+=(T other) { x += other; y += other; return *this; } template Vector2 & Vector2::operator-=(const Vector2 & other) { x -= other.x; y -= other.y; return *this; } template Vector2 & Vector2::operator-=(T other) { x -= other; y -= other; return *this; } template Vector2 & Vector2::operator*=(const Vector2 & other) { x *= other.x; y *= other.y; return *this; } template Vector2 & Vector2::operator*=(T other) { x *= other; y *= other; return *this; } template Vector2 & Vector2::operator/=(const Vector2 & other) { x /= other.x; y /= other.y; return *this; } template Vector2 & Vector2::operator/=(T other) { x /= other; y /= other; return *this; } template Vector2 Vector2::operator-() const { return {-x, -y}; } template bool Vector2::operator==(const Vector2 & other) const { return x == other.x && y == other.y; } template bool Vector2::operator!=(const Vector2 & other) const { return !(*this == other); } } // namespace crepe