code: func (p *Path) Distance() float64 {
  	sum := 0.0
  
  	loopTo := len(p.PointSet) - 1
  	for i := 0; i < loopTo; i++ {
  		sum += p.PointSet[i].DistanceFrom(&p.PointSet[i+1])
  	}
  
  	return sum
  }
docs: // Distance computes the total distance in the units of the points.