Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/17cupsofcoffee/rl
/ intersects
Method
intersects
src/resources.rs:191–196 ·
view source on GitHub ↗
(&self, other: &Room)
Source
from the content-addressed store, hash-verified
189
}
190
191
pub fn intersects(&self, other: &Room) -> bool {
192
self.x < other.x + other.width
193
&& self.x + self.width > other.x
194
&& self.y < other.y + other.height
195
&& self.y + self.height > other.y
196
}
197
}
Callers
1
generate
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected