src/proto2/Vector.hh
changeset 66 1415a2d45686
parent 60 26571fd9a8d1
child 77 98dc9008d15f
equal deleted inserted replaced
65:be91c125f741 66:1415a2d45686
    65 bool operator!=(const _Vector<T> &v1, const _Vector<T> &v2) {
    65 bool operator!=(const _Vector<T> &v1, const _Vector<T> &v2) {
    66     return !(v1 == v2);
    66     return !(v1 == v2);
    67 }
    67 }
    68 
    68 
    69 template<typename T>
    69 template<typename T>
    70 std::ostream& operator<<(std::ostream &s, _Vector<T> &v) {
    70 std::ostream& operator<<(std::ostream &s, const _Vector<T> &v) {
    71     return s<<"("<<v.x<<", "<<v.y<<")";
    71     return s<<"("<<v.x<<", "<<v.y<<")";
    72 }
    72 }
    73 
    73 
    74 typedef _Vector<float> Vector;
    74 typedef _Vector<float> Vector;
    75 
    75