function distance(coord1, coord2) {
  return Math.sqrt(squaredDistance(coord1, coord2));
}
@param {Coordinate} coord1 First coordinate.
@param {Coordinate} coord2 Second coordinate.
@return {number} Distance between coord1 and coord2.