Added rectangle intersection (clipping).