pub fn transposed(&self) -> Matrix3 {
        Matrix3::new([
            [self[0][0], self[1][0], self[2][0]],
            [self[0][1], self[1][1], self[2][1]],
            [self[0][2], self[1][2], self[2][2]],
        ])
    }
/// Transpose this matrix into a new matrix
///
/// # Examples
///
/// ```
/// # use lumol_core::types::Matrix3;
/// let matrix = Matrix3::new([
///     [1.0, 2.0, 4.0],
///     [0.0, 1.0, 3.0],
///     [0.0, 0.0, 1.0]
/// ]);
///
/// let transposed = Matrix3::new([
///     [1.0, 0.0, 0.0],
///     [2.0, 1.0, 0.0],
///     [4.0, 3.0, 1.0]
/// ]);
///
/// assert_eq!(matrix.transposed(), transposed);
/// ```
Transpose this matrix into a new matrix
Transpose this matrix into a new matrix
pub fn transposed(&self) -> Matrix3 {
        Matrix3::new([
            [self[0][0], self[1][0], self[2][0]],
            [self[0][1], self[1][1], self[2][1]],
            [self[0][2], self[1][2], self[2][2]],
        ])
    }
pub fn transposed ( & self ) -> Matrix3 { Matrix3 :: new ( [ [ self [ 0 ] [ 0 ] , self [ 1 ] [ 0 ] , self [ 2 ] [ 0 ] ] , [ self [ 0 ] [ 1 ] , self [ 1 ] [ 1 ] , self [ 2 ] [ 1 ] ] , [ self [ 0 ] [ 2 ] , self [ 1 ] [ 2 ] , self [ 2 ] [ 2 ] ] , ] ) }
Transpose this matrix into a new matrix
Transpose this matrix into a new matrix
&self
examples
None
use lumol_core::types::matrix3;




assert_eq!(matrix.transposed(), transposed);
```
assert_eq! ( matrix . transposed () transposed ) ; ` ` `