some plane intersection stuff