00001 /* 00002 * Donnees.cpp : 00003 * Copyright (C) 2007 Florence Zara, LIRIS 00004 * florence.zara@liris.univ-lyon1.fr 00005 * http://liris.cnrs.fr/florence.zara/ 00006 * 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published 00010 * by the Free Software Foundation; either version 2.1 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 00023 00024 00033 #include "Donnees.h" 00034 00035 00039 Coord operator+(Coord a, Coord b) 00040 { 00041 return Coord(a.getX() + b.getX(), a.getY() + b.getY(), a.getZ() + b.getZ()); 00042 } 00043 00044 00048 Coord operator-(Coord a, Coord b) 00049 { 00050 return Coord(a.getX() - b.getX(), a.getY() - b.getY(), a.getZ() - b.getZ()); 00051 }