Browse Source

Introduce Point::WalkingDistance

pull/2113/head
Vladimir Olteanu 5 years ago committed by Anders Jenbo
parent
commit
e37e7e408c
  1. 7
      Source/engine.h

7
Source/engine.h

@ -202,6 +202,13 @@ struct Point {
return offset.x + offset.y;
}
int WalkingDistance(Point other) const
{
Point offset = abs(*this - other);
return std::max(offset.x, offset.y);
}
};
struct Size {

Loading…
Cancel
Save