toMatrix4 method
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);
}
Converts this transform to a Matrix4.
Matrix4 toMatrix4() {
return Matrix4.identity()
..translateByDouble(translateX, translateY, 0.0, 1.0)
..scaleByDouble(scale, scale, 1.0, 1.0);
}