A wye or triangular junction, in rail terminology, is a triangular shaped arrangement of rail tracks with a switch or set of points at each corner. In mainline railroads, this can be used at a rail junction, where two rail lines join, in order to allow trains to pass from one line to the other line.