toMatrix method

Matrix4 toMatrix()

The affine as a matrix: scales by scale, then translates by (tx, ty).

Implementation

vmath.Matrix4 toMatrix() => vmath.Matrix4.identity()
  ..translateByDouble(tx, ty, 0, 1)
  ..scaleByDouble(scale, scale, 1, 1);