7 Vector<C> operator+(const Vector<C>& v1, const Vector<C>& v2);
10 std::ostream& operator<<(std::ostream& os, const Vector<C>& v);
13 /*---------------------------------------------------------------------------*\
14 Class Vector Declaration
15 \*---------------------------------------------------------------------------*/
25 inline Vector(const double x, const double y);
37 friend Vector<C> operator+ <C>(const Vector<C>& v1, const Vector<C>& v2);
39 friend std::ostream& operator<<(std::ostream& os, const Vector<C>& v)
41 os << v.X << '\t' << v.Y << '\n';
47 inline Vector<C>::Vector(const double x, const double y)
55 inline Vector<C> operator+(const Vector<C>& v1, const Vector<C>& v2)
57 return Vector<C>(v1.X+v2.X, v1.Y+v2.Y);