mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 10:34:09 +00:00
Peds & a few fixes
This commit is contained in:
parent
11d071a032
commit
d5619fb5ae
5 changed files with 387 additions and 28 deletions
|
@ -49,9 +49,6 @@ public:
|
|||
CVector2D operator+(const CVector2D &rhs) const {
|
||||
return CVector2D(x+rhs.x, y+rhs.y);
|
||||
}
|
||||
CVector2D operator*(float t) const {
|
||||
return CVector2D(x*t, y*t);
|
||||
}
|
||||
CVector2D operator/(float t) const {
|
||||
return CVector2D(x/t, y/t);
|
||||
}
|
||||
|
@ -91,3 +88,13 @@ NormalizeXY(float &x, float &y)
|
|||
}else
|
||||
x = 1.0f;
|
||||
}
|
||||
|
||||
inline CVector2D operator*(const CVector2D &left, float right)
|
||||
{
|
||||
return CVector2D(left.x * right, left.y * right);
|
||||
}
|
||||
|
||||
inline CVector2D operator*(float left, const CVector2D &right)
|
||||
{
|
||||
return CVector2D(left * right.x, left * right.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue