#pragma once namespace mapbox { namespace geometry { template constexpr point operator+(point const& lhs, point const& rhs) { return point(lhs.x + rhs.x, lhs.y + rhs.y); } template constexpr point operator+(point const& lhs, T const& rhs) { return point(lhs.x + rhs, lhs.y + rhs); } template constexpr point operator-(point const& lhs, point const& rhs) { return point(lhs.x - rhs.x, lhs.y - rhs.y); } template constexpr point operator-(point const& lhs, T const& rhs) { return point(lhs.x - rhs, lhs.y - rhs); } template constexpr point operator*(point const& lhs, point const& rhs) { return point(lhs.x * rhs.x, lhs.y * rhs.y); } template constexpr point operator*(point const& lhs, T const& rhs) { return point(lhs.x * rhs, lhs.y * rhs); } template constexpr point operator/(point const& lhs, point const& rhs) { return point(lhs.x / rhs.x, lhs.y / rhs.y); } template constexpr point operator/(point const& lhs, T const& rhs) { return point(lhs.x / rhs, lhs.y / rhs); } template constexpr point& operator+=(point& lhs, point const& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } template constexpr point& operator+=(point& lhs, T const& rhs) { lhs.x += rhs; lhs.y += rhs; return lhs; } template constexpr point& operator-=(point& lhs, point const& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } template constexpr point& operator-=(point& lhs, T const& rhs) { lhs.x -= rhs; lhs.y -= rhs; return lhs; } template constexpr point& operator*=(point& lhs, point const& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } template constexpr point& operator*=(point& lhs, T const& rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } template constexpr point& operator/=(point& lhs, point const& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } template constexpr point& operator/=(point& lhs, T const& rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } } // namespace geometry } // namespace mapbox