Changed the distance to be measured from the center of the star instead of the edge.