1 // Copyright (C) 2008-2011 Jakob Schiotz and Center for Individual
2 // Nanoparticle Functionality, Department of Physics, Technical
3 // University of Denmark.  Email: schiotz@fysik.dtu.dk
4 //
5 // This file is part of Asap version 3.
6 // Asap is released under the GNU Lesser Public License (LGPL) version 3.
7 // However, the parts of Asap distributed within the OpenKIM project
8 // (including this file) are also released under the Common Development
9 // and Distribution License (CDDL) version 1.0.
10 //
11 // This program is free software: you can redistribute it and/or
12 // modify it under the terms of the GNU Lesser General Public License
13 // version 3 as published by the Free Software Foundation.  Permission
14 // to use other versions of the GNU Lesser General Public License may
15 // granted by Jakob Schiotz or the head of department of the
16 // Department of Physics, Technical University of Denmark, as
17 // described in section 14 of the GNU General Public License.
18 //
19 // This program is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 // GNU General Public License for more details.
23 //
24 // You should have received a copy of the GNU General Public License
25 // and the GNU Lesser Public License along with this program.  If not,
26 // see <http://www.gnu.org/licenses/>.
27 
28 #include "Vec.h"
29 #include <iostream>
30 
31 namespace ASAPSPACE {
32 
operator <<(ostream & out,const Vec & v)33 ostream& operator<<(ostream& out, const Vec& v)
34 {
35   out << "(" << v.x << ", " << v.y << ", " << v.z << ")";
36   return out;
37 }
38 
operator >>(istream & in,Vec & v)39 istream& operator>>(istream& in, Vec& v)
40 {
41   in >> v.x >> v.y >> v.z;
42   return in;
43 }
44 
45 } // end namespace
46