Added intersection logic for plane