Vector2.h

00001 /****************************************************************************
00002  * Copyright 2006 Evan Drumwright
00003  * This library is distributed under the terms of the GNU General Public 
00004  * License (found in COPYING).
00005  ****************************************************************************/
00006 
00007 #ifndef _VECTOR2_H
00008 #define _VECTOR2_H
00009 
00010 #include <Physsim/VectorN.h>
00011 
00012 namespace Physsim {
00013 
00015 class Vector2 : public VectorN
00016 {
00017         public:
00018                 Vector2();
00019                 Vector2(Real x, Real y);
00020                 Vector2(const boost::shared_array<Real> array);
00021                 Vector2(VectorNConstPtr v);
00022                 Vector2(const Vector2& source);
00023                 Vector2(const VectorN& source);
00024                 void operator=(const Vector2& source) { VectorN::operator=(source); }
00025                 virtual void operator=(const VectorN& source) { assert(source.size() == 2); VectorN::operator=(source); }
00026 };
00027 }
00028 
00029 #endif

Generated on Wed Oct 24 14:54:22 2007 for Physsim by  doxygen 1.5.1