MCPcopy Create free account
hub / github.com/crawl/crawl / distance2

Function distance2

crawl-ref/source/coord.cc:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int distance2(const coord_def& p1, const coord_def& p2)
17{
18 return (p2 - p1).abs();
19}
20
21bool adjacent(const coord_def& p1, const coord_def& p2)
22{

Callers 3

_orient_wall_bloodFunction · 0.85
LUAFNFunction · 0.85

Calls 1

absMethod · 0.45

Tested by

no test coverage detected