Calculates the intersection of a target rectangle and a bounding box (usually 0,0 -> width,height). Handles negative offsets by shrinking dimensions.
Calculates the intersection of a target rectangle and a bounding box (usually 0,0 -> width,height). Handles negative offsets by shrinking dimensions.