copy method

Mat3 copy(
  1. Mat3 matrix
)

Copy another matrix into this matrix object.

Implementation

Mat3 copy(Mat3 matrix) {
  for (int i = 0; i < matrix.elements.length; i++) {
    elements[i] = matrix.elements[i];
  }
  return this;
}