diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-01 19:31:19 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-01 19:31:19 +0200 |
commit | 6fdbdea4e65b75ac9ebda91320deb656655d3af5 (patch) | |
tree | 409c8a8da5ccdf8b527ffec9632ec3d6fbb9609e /vector.h | |
parent | 8771dde21514e754a7eb774f7047d17c226d6212 (diff) |
A bunch of network-related changes.
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vector.h b/vector.h deleted file mode 100644 index 48deb87..0000000 --- a/vector.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef VECTOR_H -#define VECTOR_H - -#include <boost/shared_ptr.hpp> - -#include <string> - -class Vector2 { - public: - float x, y; - - Vector2(); - Vector2(const Vector2& v); - Vector2(float x, float y); - bool operator==(const Vector2& v) const; - Vector2& operator+=(const Vector2& v); - Vector2& operator-=(const Vector2& v); - Vector2 operator-(const Vector2& v); - Vector2& operator*=(const float f); - Vector2& operator/=(const float f); - float length(); - std::string str(); -}; - -class Vector3 : public Vector2 { - public: - typedef boost::shared_ptr<Vector3> p; - float z; - - Vector3(); - Vector3(const Vector3& v); - Vector3(float x, float y, float z); - bool operator==(const Vector3& v); - Vector3& operator+=(const Vector3& v); - Vector3 operator+(const Vector3& v); - Vector3& operator-=(const Vector3& v); - Vector3 operator-(const Vector3& v); - Vector3& operator*=(const float f); - Vector3 operator*(const float f); - Vector3& operator/=(const float f); - Vector3 operator/(const float f); - Vector3 cross(const Vector3& v); - float dot(const Vector3& v); - Vector2 xz(); - float length(); - std::string str(); -}; - -#endif |