test identity transpose
This commit is contained in:
parent
fa5971faa4
commit
dda29eb836
@ -107,6 +107,8 @@ impl Matrix4x4 {
|
|||||||
/// [0., 0., 0., 1.],
|
/// [0., 0., 0., 1.],
|
||||||
/// );
|
/// );
|
||||||
/// assert_eq!(m.transpose(), m_t);
|
/// assert_eq!(m.transpose(), m_t);
|
||||||
|
///
|
||||||
|
/// assert_eq!(Matrix4x4::identity(), Matrix4x4::identity().transpose());
|
||||||
pub fn transpose(&self) -> Matrix4x4 {
|
pub fn transpose(&self) -> Matrix4x4 {
|
||||||
let m = self.m;
|
let m = self.m;
|
||||||
Matrix4x4 {
|
Matrix4x4 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user