use Piecewise for Ray creation from angle