transformed method

  1. @override
CubicToCommand transformed(
  1. AffineMatrix matrix
)
override

Returns a new path command transformed by matrix.

Implementation

@override
CubicToCommand transformed(AffineMatrix matrix) {
  final Point xy1 = matrix.transformPoint(Point(x1, y1));
  final Point xy2 = matrix.transformPoint(Point(x2, y2));
  final Point xy3 = matrix.transformPoint(Point(x3, y3));
  return CubicToCommand(xy1.x, xy1.y, xy2.x, xy2.y, xy3.x, xy3.y);
}