mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
-deleted approxDist
This commit is contained in:
parent
f1b5bba035
commit
22cf0ea2ad
1 changed files with 0 additions and 17 deletions
|
@ -633,23 +633,6 @@ inline int dmulscale30r(int a, int b, int c, int d)
|
|||
return (int)(acc >> 30);
|
||||
}
|
||||
|
||||
inline int approxDist(int dx, int dy)
|
||||
{
|
||||
dx = abs(dx);
|
||||
dy = abs(dy);
|
||||
if (dx > dy)
|
||||
dy = (3 * dy) >> 3;
|
||||
else
|
||||
dx = (3 * dx) >> 3;
|
||||
return dx + dy;
|
||||
}
|
||||
|
||||
// this is merely a refactoring aid to allow partial upgrading of certain functions.
|
||||
inline int approxDist(const DVector2& vect)
|
||||
{
|
||||
return int(vect.Length() * worldtoint);
|
||||
}
|
||||
|
||||
class Rect {
|
||||
public:
|
||||
int x0, y0, x1, y1;
|
||||
|
|
Loading…
Reference in a new issue