transformed method

SPath transformed(
  1. Point<double> transform(
    1. Point<double>
    )
)

Transform via transform on Point

Implementation

SPath transformed(Point<double> Function(Point<double>) transform) {
  // hmm, this will work, but kind of don't like how exposing some implementation details
  final newPath = SPath(transform(currentPoint));
  newPath.edges = edges.map((el) => el.transformed(transform)).toList();
  return newPath;
}