fix: quaternion string format order fixed

This commit is contained in:
2025-10-22 22:24:48 +03:00
parent fba64c3854
commit a859c0cbff

View File

@@ -333,13 +333,13 @@ public readonly struct Quaternion(float x, float y, float z, float w) : IEquatab
/// Generates a hash code for the <see cref="Quaternion"/>.
/// </summary>
/// <returns>A hash code for the <see cref="Quaternion"/>.</returns>
public override int GetHashCode() => System.HashCode.Combine(W, X, Y, Z);
public override int GetHashCode() => System.HashCode.Combine(X, Y, Z, W);
/// <summary>
/// Converts the <see cref="Quaternion"/> to its string representation.
/// </summary>
/// <returns>A string representation of the <see cref="Quaternion"/>.</returns>
public override string ToString() => $"{nameof(Quaternion)}({W}, {X}, {Y}, {Z})";
public override string ToString() => $"{nameof(Quaternion)}({X}, {Y}, {Z}, {W})";
}
/// <summary>