compose method
Creates a PerspectiveTransform that is the composition of this
transformation and a given other
transformation.
Implementation
PerspectiveTransform compose(PerspectiveTransform other) {
final A = other._matrix.toList();
final B = _matrix.toList();
final result = List<double>.filled(9, 0);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
for (int k = 0; k < 3; k++) {
result[i * 3 + j] += A[i * 3 + k] * B[k * 3 + j];
}
}
}
return PerspectiveTransform(result);
}