Skip to content

Commit

Permalink
Merge pull request #1528 from NogginBops/fix-matrix4x3
Browse files Browse the repository at this point in the history
Fixed Matrix4x3(d).ToString() to print the final row.
  • Loading branch information
NogginBops committed Oct 26, 2022
2 parents 1deb67e + 6eb9d74 commit 184fb19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OpenTK.Mathematics/Matrix/Matrix4x3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ public static void Transpose(in Matrix4x3 mat, out Matrix3x4 result)
/// <returns>The string representation of the matrix.</returns>
public override string ToString()
{
return $"{Row0}\n{Row1}\n{Row2}";
return $"{Row0}\n{Row1}\n{Row2}\n{Row3}";
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenTK.Mathematics/Matrix/Matrix4x3d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ public static void Transpose(in Matrix4x3d mat, out Matrix3x4d result)
/// <returns>The string representation of the matrix.</returns>
public override string ToString()
{
return $"{Row0}\n{Row1}\n{Row2}";
return $"{Row0}\n{Row1}\n{Row2}\n{Row3}";
}

/// <summary>
Expand Down

0 comments on commit 184fb19

Please sign in to comment.