Skip to content

Commit

Permalink
Added DebuggerDisplay to vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornado-Technology committed Aug 29, 2024
1 parent e648380 commit 52cd8d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Hypercube.Mathematics/Vectors/Vector2i.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System.Collections;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using JetBrains.Annotations;

namespace Hypercube.Mathematics.Vectors;

[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential), DebuggerDisplay("({X}, {Y})")]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public readonly partial struct Vector2i : IEquatable<Vector2i>, IComparable<Vector2i>, IComparable<int>, IEnumerable<int>
{
Expand Down
3 changes: 2 additions & 1 deletion Hypercube.Mathematics/Vectors/Vector3.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Hypercube.Mathematics.Extensions;
Expand All @@ -9,7 +10,7 @@ namespace Hypercube.Mathematics.Vectors;
/// <summary>
/// Represents a vector with three single-precision floating-point values.
/// </summary>
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential), DebuggerDisplay("({X}, {Y}, {Z})")]
public readonly partial struct Vector3 : IEquatable<Vector3>, IComparable<Vector3>, IComparable<float>, IEnumerable<float>
{
/// <value>
Expand Down
3 changes: 2 additions & 1 deletion Hypercube.Mathematics/Vectors/Vector3i.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System.Collections;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using JetBrains.Annotations;

namespace Hypercube.Mathematics.Vectors;

[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential), DebuggerDisplay("({X}, {Y}, {Z})")]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public readonly partial struct Vector3i : IEquatable<Vector3i>, IComparable<Vector3i>, IComparable<int>, IEnumerable<int>
{
Expand Down
3 changes: 2 additions & 1 deletion Hypercube.Mathematics/Vectors/Vector4.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System.Collections;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Hypercube.Mathematics.Extensions;
using JetBrains.Annotations;

namespace Hypercube.Mathematics.Vectors;

[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential)]
[PublicAPI, Serializable, StructLayout(LayoutKind.Sequential), DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
public readonly partial struct Vector4 : IEquatable<Vector4>, IComparable<Vector4>, IComparable<float>, IEnumerable<float>
{
/// <value>
Expand Down

0 comments on commit 52cd8d3

Please sign in to comment.