transpose method

IntersectionMatrix transpose()

Transposes this IntersectionMatrix.

@return this IntersectionMatrix as a convenience

Implementation

IntersectionMatrix transpose() {
  int temp = matrix[1][0];
  matrix[1][0] = matrix[0][1];
  matrix[0][1] = temp;
  temp = matrix[2][0];
  matrix[2][0] = matrix[0][2];
  matrix[0][2] = temp;
  temp = matrix[2][1];
  matrix[2][1] = matrix[1][2];
  matrix[1][2] = temp;
  return this;
}