Skip to content

Commit

Permalink
Perform some additional cleanup of the System.Numerics.Vector and Mat…
Browse files Browse the repository at this point in the history
…rix types
  • Loading branch information
tannergooding committed Jun 15, 2024
1 parent ba252ac commit d40954b
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 670 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ readonly get
{
ThrowHelper.ThrowArgumentOutOfRangeException();
}

return Unsafe.Add(ref Unsafe.AsRef(in this.X), row)[column];
return Unsafe.Add(ref Unsafe.AsRef(in X), row)[column];
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand All @@ -83,7 +82,7 @@ readonly get
{
ThrowHelper.ThrowArgumentOutOfRangeException();
}
Unsafe.Add(ref this.X, row)[column] = value;
Unsafe.Add(ref X, row)[column] = value;
}
}

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

bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
readonly bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);
}
}
}
Loading

0 comments on commit d40954b

Please sign in to comment.