Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

vertex.h

Go to the documentation of this file.
00001 #ifndef __VERTEX_H__
00002 #define __VERTEX_H__
00003 /*
00004         Animadead: A Skeletal Animation Library
00005         Copyright (C) 2004 John C. Butterfield
00006 
00007         This library is free software; you can redistribute it and/or
00008         modify it under the terms of the GNU Lesser General Public
00009         License as published by the Free Software Foundation; either
00010         version 2.1 of the License, or (at your option) any later version.
00011 
00012         This library is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015         Lesser General Public License for more details.
00016 
00017         You should have received a copy of the GNU Lesser General Public
00018         License along with this library; if not, write to the Free Software
00019         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00020 
00021         John C. Butterfield
00022         johnb003@hotmail.com
00023 */
00024 
00025 #include <iostream>
00026 
00027 class Vertex
00028 {
00029 public:
00030         Vertex();
00031         Vertex(float x, float y, float z);
00032         void set(float x, float y, float z);
00033 
00034         Vertex &operator+=(const Vertex &v);
00035         Vertex &operator-=(const Vertex &v);
00036         Vertex &operator*=(float v);
00037         Vertex &operator/=(float v);
00038 
00039         friend Vertex operator+(const Vertex &v1, const Vertex &v2);
00040         friend Vertex operator-(const Vertex &v1, const Vertex &v2);
00041         friend Vertex operator*(const Vertex &v, float f);
00042         friend Vertex operator/(const Vertex &v, float f);
00043 
00044         float x,y,z;
00045 };
00046 
00047 std::ostream &operator<<(std::ostream &os, const Vertex &v);
00048 
00049 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18