transpose method

Matrix3 transpose()

Implementation

Matrix3 transpose() {
  double tmp;
  final m = elements;

  tmp = m[1];
  m[1] = m[3];
  m[3] = tmp;
  tmp = m[2];
  m[2] = m[6];
  m[6] = tmp;
  tmp = m[5];
  m[5] = m[7];
  m[7] = tmp;

  return this;
}