MCPcopy Create free account
hub / github.com/NetHack/NetHack / inside_rect

Function inside_rect

src/region.c:53–57  ·  view source on GitHub ↗

Should be inlined. */

Source from the content-addressed store, hash-verified

51
52/* Should be inlined. */
53boolean
54inside_rect(NhRect *r, int x, int y)
55{
56 return (boolean) (x >= r->lx && x <= r->hx && y >= r->ly && y <= r->hy);
57}
58
59/*
60 * Check if a point is inside a region.

Callers 1

inside_regionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected