Implementing the intersection method for the rectangle shape and also updating it's pdf to 0 if the directionality is out of area.