From 55039f5720bbd9db9a5e884adf6a2fdfc3fd00f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Dahlstr=C3=B6m?= Date: Mon, 26 Aug 2024 18:38:14 +0300 Subject: [PATCH] Fixup transpose test --- core/src/math/mat.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/math/mat.rs b/core/src/math/mat.rs index bf4d7092..f6804834 100644 --- a/core/src/math/mat.rs +++ b/core/src/math/mat.rs @@ -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. @@ -683,9 +683,9 @@ 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!( @@ -693,6 +693,7 @@ mod tests { Matrix::<_, InvMap>::new([ [0.0, 10.0, 20.0], // [1.0, 11.0, 21.0], + [2.0, 12.0, 22.0], ]) ); }