Signed reflection geometry
Normal is the positive laboratory horizontal axis, grooves vertical. Source direction and outgoing direction have positive normal components; the incoming propagation direction points toward the grating. Zero order obeys ordinary reflection. Orders outside the sine bound have no propagating ray.