distance in px to the closest edge of a galaxy