29Vector2<T> operator + (
const Vector2<T>& l,
const Vector2<T>& r)
31 return { l.x + r.x, l.y + r.y };
35Vector2<T>& operator += (Vector2<T>& l,
const Vector2<T>& r)
43Vector2<T> operator - (
const Vector2<T>& l,
const Vector2<T>& r)
45 return { l.x - r.x, l.y - r.y };
49Vector2<T>& operator -= (Vector2<T>& l,
const Vector2<T>& r)
57Vector2<T> operator * (
const Vector2<T>& l,
const Vector2<T>& r)
59 return { l.x * r.x, l.y * r.y };
63Vector2<T>& operator *= (Vector2<T>& l,
const Vector2<T>& r)
71Vector2<T> operator * (
const Vector2<T>& l, T r)
73 return { l.x * r, l.y * r };
77Vector2<T>& operator *= (Vector2<T>& l, T r)
85Vector2<T> operator / (
const Vector2<T>& l,
const Vector2<T>& r)
87 return { l.x / r.x, l.y / r.y };
91Vector2<T>& operator /= (Vector2<T>& l,
const Vector2<T>& r)
99Vector2<T> operator / (
const Vector2<T>& l, T r)
101 return { l.x / r, l.y / r };
105Vector2<T>& operator /= (Vector2<T>& l, T r)