transformColumnMajor4x4 property

Float64List get transformColumnMajor4x4

transform as the column-major 4×4 storage Flutter's Transform widget and Canvas.transform consume — the live cropped preview and the baked poster thumb apply the identical mapping through it.

Implementation

Float64List get transformColumnMajor4x4 => Float64List.fromList(<double>[
  transform[0], transform[3], 0, 0, // column 0
  transform[1], transform[4], 0, 0, // column 1
  0, 0, 1, 0, // column 2
  transform[2], transform[5], 0, 1, // column 3 (translation)
]);