Method for intersection calculation of segment and plane