Function rgb_derivation::matrix::transposed [−][src]
pub fn transposed<K>(matrix: Matrix<K>) -> Matrix<K>
Transposes a 3×3 matrix. Consumes the argument and returns a new matrix.
Example
let primaries = [ [0.431, 0.222, 0.020], [0.342, 0.707, 0.130], [0.178, 0.071, 0.939] ]; assert_eq!([ [0.431, 0.342, 0.178], [0.222, 0.707, 0.071], [0.020, 0.130, 0.939], ], rgb_derivation::matrix::transposed(primaries));