Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
int distance2(const coord_def& p1, const coord_def& p2)
17
{
18
return (p2 - p1).abs();
19
}
20
21
bool adjacent(const coord_def& p1, const coord_def& p2)
22
{
Callers
3
_orient_wall_blood
Function · 0.85
_find_good_alternate_move
Function · 0.85
LUAFN
Function · 0.85
Calls
1
abs
Method · 0.45
Tested by
no test coverage detected