Guide to Game Development/Theory/Collision detection/AABB intersection

Axis-aligned bounding box (only works for items aligned to axes, but you can translate them, perform the test and translate them back).