4 /// ***** Private Varibles *****
6 const float PI = 3.141592653;
9 /// ***** Public Methods *****
13 return x % y + (x < 0 ? y : 0);
18 Vector2 perp(const Vector2& vec)
20 return Vector2(-vec.y, vec.x);
23 float dot(const Vector2& vec1, const Vector2& vec2)
25 return vec1.x * vec2.x + vec1.y * vec2.y;
28 //TODO float Vector2::projectionCoeff(const Vector2* vec) const;
29 //TODO Vector2* Vector2::projection(const Vector2* vec) const;