Every position of the pattern, at all rotations, is compared against the reference pattern.
A Fourier transform based correlation function may be applied to match patterns that may be rotationally offset.