bendBolt function

BoltTree bendBolt(
  1. BoltTree b,
  2. Point2 fn(
    1. double x,
    2. double y
    )
)

Implementation

BoltTree bendBolt(BoltTree b, Point2 Function(double x, double y) fn) =>
    BoltTree([
      for (final q in b.paths)
        BoltPath([for (final (x, y) in q.pts) fn(x, y)], q.w),
    ]);