plane intersection testing working