AffineTransformation.fromMatrix constructor

AffineTransformation.fromMatrix(
  1. List<double> matrix
)

Constructs a new transformation whose matrix has the specified values.

@param matrix an array containing the 6 values { m00, m01, m02, m10, m11, m12 } @throws NullPointerException if matrix is null @throws ArrayIndexOutOfBoundsException if matrix is too small

Implementation

AffineTransformation.fromMatrix(List<double> matrix) {
  m00 = matrix[0];
  m01 = matrix[1];
  m02 = matrix[2];
  m10 = matrix[3];
  m11 = matrix[4];
  m12 = matrix[5];
}