Skip to content

Commit 3e2abe9

Browse files
committed
Perform some additional cleanup of the System.Numerics.Vector and Matrix types
1 parent ba252ac commit 3e2abe9

File tree

7 files changed

+355
-709
lines changed

7 files changed

+355
-709
lines changed

src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix3x2.Impl.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ readonly get
7272
{
7373
ThrowHelper.ThrowArgumentOutOfRangeException();
7474
}
75-
76-
return Unsafe.Add(ref Unsafe.AsRef(in this.X), row)[column];
75+
return Unsafe.Add(ref Unsafe.AsRef(in X), row)[column];
7776
}
7877

7978
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -83,7 +82,7 @@ readonly get
8382
{
8483
ThrowHelper.ThrowArgumentOutOfRangeException();
8584
}
86-
Unsafe.Add(ref this.X, row)[column] = value;
85+
Unsafe.Add(ref X, row)[column] = value;
8786
}
8887
}
8988

@@ -514,7 +513,7 @@ public readonly float GetDeterminant()
514513
[MethodImpl(MethodImplOptions.AggressiveInlining)]
515514
public override readonly int GetHashCode() => HashCode.Combine(X, Y, Z);
516515

517-
bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
516+
readonly bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
518517
}
519518
}
520519
}

0 commit comments

Comments
 (0)