fix build
This commit is contained in:
parent
1f36b78c20
commit
ca64a49af1
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ Distance2D(const CVector &v1, const CVector &v2)
|
||||||
{
|
{
|
||||||
float x = v2.x - v1.x;
|
float x = v2.x - v1.x;
|
||||||
float y = v2.y - v1.y;
|
float y = v2.y - v1.y;
|
||||||
return Sqrt(sq(x) + sq(y));
|
return Sqrt(x*x + y*y);
|
||||||
}
|
}
|
||||||
|
|
||||||
class CMatrix;
|
class CMatrix;
|
||||||
|
|
Loading…
Add table
Reference in a new issue