Stripe patterns and a projection-valued formulation of the eikonal equation