Determining if figures are related by a reflection