Pickup fixes
This commit is contained in:
1 parent
c40d628fe0
commit
1f36b78c20
2 files changed
+14
-7
No files matched your search
@@ -115,6 +115,14 @@ Distance(const CVector &v1, const CVector &v2)
|
||||
return (v2 - v1).Magnitude();
|
||||
}
|
||||
|
||||
inline float
|
||||
Distance2D(const CVector &v1, const CVector &v2)
|
||||
{
|
||||
float x = v2.x - v1.x;
|
||||
float y = v2.y - v1.y;
|
||||
return Sqrt(sq(x) + sq(y));
|
||||
}
|
||||
|
||||
class CMatrix;
|
||||
|
||||
CVector Multiply3x3(const CMatrix &mat, const CVector &vec);
|
||||
|
||||
Reference in new issue
Block a user