method
Rect.intersects
Rect.intersects(a, b) -> bool
Tests whether two rectangles overlap (axis-aligned bounding-box test). Touching edges do not count as overlapping. This is the cheap broad-phase check before any finer collision work.
Example
program Demo {
handler Step phase Update {
if Rect.intersects(player, hazard) { hurt() }
}
}