convert ray intersect into 2D coordinate