transpose method

Matrix3 transpose()

Transposes this matrix in place.

Implementation

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

  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;
}