Skip to content

Commit

Permalink
Fixup transpose test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Aug 26, 2024
1 parent 9d2e504 commit 55039f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/src/math/mat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use core::ops::Range;

use crate::render::{NdcToScreen, ViewToProj};

use super::space::{Linear, Proj4, Real};
use super::space::{Proj4, Real};
use super::vec::{ProjVec4, Vec2u, Vec3, Vector};

/// A linear transform from one space (or basis) to another.
Expand Down Expand Up @@ -683,16 +683,17 @@ mod tests {
#[test]
fn transposition() {
let m: Matrix<_, Map> = Matrix::new([
[0.0, 1.0], //
[10.0, 11.0],
[20.0, 21.0],
[0.0, 1.0, 2.0], //
[10.0, 11.0, 12.0],
[20.0, 21.0, 22.0],
]);

assert_eq!(
m.transpose(),
Matrix::<_, InvMap>::new([
[0.0, 10.0, 20.0], //
[1.0, 11.0, 21.0],
[2.0, 12.0, 22.0],
])
);
}
Expand Down

0 comments on commit 55039f5

Please sign in to comment.