Intramolecular distances determined by energy transfer. Dependence on orientational freedom of donor and acceptor