solve method

List<double?>? solve(
  1. List<double> b
)

Solves the transformation matrix system of linear equations for the given right-hand side vector.

@param b the vector for the right-hand side of the system @return the solution vector, or null if no solution could be determined

Implementation

List<double?>? solve(List<double> b) {
  List<List<double>> a = [
    [src0.x, src0.y, 1],
    [src1.x, src1.y, 1],
    [src2.x, src2.y, 1]
  ];
  return Matrix.solve(a, b);
}