add pi/2 awareness to piecewise of Ray when giving arbitrary angle

The general form has to watch for this, too.