mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 15:30:34 +00:00
Pickup fixes
This commit is contained in:
parent
c40d628fe0
commit
1f36b78c20
2 changed files with 14 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue