Determining if figures are related by a dilation