arcLength function

double arcLength(
  1. CubicPath path
)

Implementation

double arcLength(CubicPath path) {
  var total = 0.0;
  for (var i = 0; i < path.segmentCount; i++) {
    total += _segmentLength(path.points, i);
  }
  return total;
}