The divergence and length of a switch is determined by the angle of the frog (the point in the switch where two rails cross, see below) and the angle or curvature of the switch blades.
In North America this is generally referred to as a switch's "number".