DataTypes.h

#ifndef __DATATYPES_H__
#define __DATATYPES_H__

class Vector3
{
public:
    float x,y,z;
    Vector3();
    Vector3(float fx, float fy, float fz);
    float Length();
    float DistanceTo(Vector3 Target);
    Vector3 Normalize();
    Vector3 MidPoint(Vector3 End);
    Vector3 operator=(Vector3 v);
    Vector3 operator+(Vector3 v);
    Vector3 operator-(Vector3 v);
    Vector3 operator*(Vector3 v);
    Vector3 operator/(Vector3 v);
    Vector3 operator*(float f);
    Vector3 operator/(float f);
    Vector3 operator*(int i);
    Vector3 operator/(int i);
    bool operator==(Vector3 v);
    bool operator!=(Vector3 v);
};

class Vector2
{
public:
    float x,y;
    Vector2();
    float DistanceTo(Vector2 Target);
    Vector2(float fx, float fy);
    float Length();
    Vector2 Normalize();
    Vector2 MidPoint(Vector2 End);
    Vector2 operator=(Vector2 v);
    Vector2 operator+(Vector2 v);
    Vector2 operator-(Vector2 v);
    Vector2 operator*(Vector2 v);
    Vector2 operator/(Vector2 v);
    Vector2 operator*(float f);
    Vector2 operator/(float f);
    Vector2 operator*(int i);
    Vector2 operator/(int i);
    bool operator==(Vector2 v);
    bool operator!=(Vector2 v);
};
#endif