| 11 | #include <math.h> |
| 12 | |
| 13 | class Vector2 |
| 14 | { |
| 15 | public: |
| 16 | float x, y; |
| 17 | |
| 18 | Vector2(float _x = 0, float _y = 0); |
| 19 | ~Vector2(); |
| 20 | |
| 21 | Vector2& operator = (const Vector2 &rhs); |
| 22 | Vector2& operator += (const Vector2 &rhs); |
| 23 | Vector2& operator -= (const Vector2 &rhs); |
| 24 | Vector2 operator * (float rhs) const; |
| 25 | Vector2 operator / (float rhs) const; |
| 26 | Vector2 operator + (const Vector2 &rhs) const; |
| 27 | Vector2 operator - (const Vector2 &rhs) const; |
| 28 | Vector2 Integer(); |
| 29 | void Rotate(float angle); |
| 30 | float CrossProduct(const Vector2 &rhs) const; |
| 31 | float Magnitude(); |
| 32 | void Normalize(); |
| 33 | float DotProduct(const Vector2 &rhs) const; |
| 34 | }; |
| 35 | |
| 36 | class Vector3 |
| 37 | { |
no outgoing calls
no test coverage detected