code: func (p *Path) SquaredDistanceFrom(point *Point) float64 {
  	dist := math.Inf(1)
  
  	l := &Line{}
  	loopTo := len(p.PointSet) - 1
  	for i := 0; i < loopTo; i++ {
  		l.a = p.PointSet[i]
  		l.b = p.PointSet[i+1]
  		dist = math.Min(l.SquaredDistanceFrom(point), dist)
  	}
  
  	return dist
  }
docs: // SquaredDistanceFrom computes an O(n) minimum squared distance from the path.
  // Loops over every subline to find the minimum distance.