@staticmethod<EOL><INDENT>def distance(r1: '<STR_LIT>', r2: '<STR_LIT>'):<DEDENT>
return math.sqrt((r2.x - r1.x) ** <NUM_LIT:2> + (r2.y - r1.y) ** <NUM_LIT:2>)<EOL>
Calculate distance between the x and y of the two regions.