find distance to center of reg domain