getMatrix static method

Matrix4 getMatrix(
  1. double x,
  2. double y,
  3. double rotation
)

Implementation

static Matrix4 getMatrix(double x, double y, double rotation) {
  return Matrix4.identity()
    ..translate(x, y)
    ..rotateZ(rotation);
}