code: def distance_sqr(point, seg):
      '''Calculate and return square Euclidian distance from given point to
      centre of mass of given segment.'''
      centre_of_mass = segment_centre_of_mass(seg)
      return sum(pow(np.subtract(point, centre_of_mass), 2)f distance_sqr(point, seg):
      '''Calculate and return square Euclidian distance from given point to
      centre of mass of given segment.'''
      centre_of_mass = segment_centre_of_mass(seg)
      return sum(pow(np.subtract(point, centre_of_mass), 2))
docs: Calculate and return square Euclidian distance from given point to
      centre of mass of given segment.