00001
00002
00003
00004
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