Adding intersection function between a vector and a plane