toMatrix4 method

Matrix4 toMatrix4()

Converts this transform to a Matrix4.

Implementation

Matrix4 toMatrix4() {
  return Matrix4.identity()
    ..translateByDouble(translateX, translateY, 0.0, 1.0)
    ..scaleByDouble(scale, scale, 1.0, 1.0);
}