Skip to content

Commit da48085

Browse files
feat: add 3x3, 4x4 matrix dugger display
1 parent a81e0f9 commit da48085

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Hypercube.Mathematics/Matrices/Matrix3x3.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections;
2+
using System.Diagnostics;
23
using System.Diagnostics.CodeAnalysis;
34
using System.Runtime.CompilerServices;
45
using System.Runtime.InteropServices;
@@ -9,6 +10,7 @@
910
namespace Hypercube.Mathematics.Matrices;
1011

1112
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
13+
[DebuggerDisplay("{ToString()}")]
1214
[SuppressMessage("ReSharper", "InconsistentNaming")]
1315
public partial struct Matrix3x3 : IEquatable<Matrix3x3>, IEnumerable<Vector3>, IEnumerable<float>
1416
{

src/Hypercube.Mathematics/Matrices/Matrix4x4.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections;
2+
using System.Diagnostics;
23
using System.Diagnostics.CodeAnalysis;
34
using System.Runtime.CompilerServices;
45
using System.Runtime.InteropServices;
@@ -14,6 +15,7 @@ namespace Hypercube.Mathematics.Matrices;
1415
/// Implementation of a 4x4 matrix for rendering work. (COLUM-MAJOR)
1516
/// </summary>
1617
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
18+
[DebuggerDisplay("{ToString()}")]
1719
[SuppressMessage("ReSharper", "InconsistentNaming")]
1820
public readonly partial struct Matrix4x4 : IEquatable<Matrix4x4>, IEnumerable<Vector4>, IEnumerable<float>
1921
{

0 commit comments

Comments
 (0)