half plane intersection