function isArc(curve, circle) {
  const tolerance = Math.min(
    arcThreshold * error,
    (arcTolerance * circle.radius) / 100,
  );

  return [0, 1 / 4, 1 / 2, 3 / 4, 1].every(function (point) {
    return (
      Math.abs(
        getDistance(getCubicBezierPoint(curve, point), circle.center) -
          circle.radius,
      ) <= tolerance
    );
  });
}
Checks if a curve fits the given circle.

@param {ReadonlyArray<number>} curve
@param {Circle} circle
@returns {boolean}