diff --git a/Engine.Core/Primitives/Quaternion.cs b/Engine.Core/Primitives/Quaternion.cs index c18ab6d..47c02f6 100644 --- a/Engine.Core/Primitives/Quaternion.cs +++ b/Engine.Core/Primitives/Quaternion.cs @@ -333,13 +333,13 @@ public readonly struct Quaternion(float x, float y, float z, float w) : IEquatab /// Generates a hash code for the . /// /// A hash code for the . - public override int GetHashCode() => System.HashCode.Combine(W, X, Y, Z); + public override int GetHashCode() => System.HashCode.Combine(X, Y, Z, W); /// /// Converts the to its string representation. /// /// A string representation of the . - public override string ToString() => $"{nameof(Quaternion)}({W}, {X}, {Y}, {Z})"; + public override string ToString() => $"{nameof(Quaternion)}({X}, {Y}, {Z}, {W})"; } ///