Rotational Brownian motion of a pair of linear molecules or dipoles with anisotropic interaction