Noncollinear optical gating