From ba6a2bd670e7262c3f094897e264f3a4546d6a6f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Sep 2024 15:06:38 -0700 Subject: [PATCH] column major --- src/integer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integer.rs b/src/integer.rs index f323336..887e1cf 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -571,7 +571,7 @@ pub mod mat3{ pub fn from_rotation_yx(x:Angle32,y:Angle32)->Planar64Mat3{ let (xc,xs)=x.cos_sin(); let (yc,ys)=y.cos_sin(); - Planar64Mat3::from_rows([ + Planar64Mat3::from_cols([ Planar64Vec3::new([xc,Planar64::ZERO,-xs]), Planar64Vec3::new([(xs*ys).fix_1(),yc,(xc*ys).fix_1()]), Planar64Vec3::new([(xs*yc).fix_1(),-ys,(xc*yc).fix_1()]), @@ -580,7 +580,7 @@ pub mod mat3{ #[inline] pub fn from_rotation_y(y:Angle32)->Planar64Mat3{ let (c,s)=y.cos_sin(); - Planar64Mat3::from_rows([ + Planar64Mat3::from_cols([ Planar64Vec3::new([c,Planar64::ZERO,-s]), vec3::Y, Planar64Vec3::new([s,Planar64::ZERO,c]),