Página Principal   Hierarquia de Classes   Lista de Componentes   Lista de Arquivos   Componentes Membros  

Vector.hpp

00001 /*      Vector.hpp - Morpheous
00002  *
00003  *  $Header: /home/aldon/cvs/Morpheous/include/Vector.hpp,v 1.3 2003/07/27 20:16:26 aldon Exp $
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 
00020 
00021 #ifndef __VECTOR_HPP__
00022 #define __VECTOR_HPP__
00023 
00024 
00028 class Vector
00029 {
00030 public:
00034     float x;
00035 
00039     float y;
00040 
00044     float z;
00045 
00049     Vector();
00050 
00057     Vector(float x, float y, float z);
00058 
00064     Vector operator+(const Vector& v) const;
00065 
00071     Vector operator-(const Vector& v) const;
00072     
00078     Vector operator*(float s) const;
00079     
00085     Vector operator/(float s) const;
00086     
00092     Vector operator+=(const Vector& v);
00093     
00099     Vector operator-=(const Vector& v);
00100 
00105     Vector normalize() const;
00106 };
00107 
00108 
00109 #endif // __VECTOR_HPP__

Gerado em Sun Sep 21 20:18:44 2003 para Morpheous por doxygen1.2.13.1 escrito por Dimitri van Heesch, © 1997-2001