fix: quaternion string format order fixed
This commit is contained in:
@@ -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"/>.
|
/// Generates a hash code for the <see cref="Quaternion"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A hash code for the <see cref="Quaternion"/>.</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Converts the <see cref="Quaternion"/> to its string representation.
|
/// Converts the <see cref="Quaternion"/> to its string representation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A string representation of the <see cref="Quaternion"/>.</returns>
|
/// <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>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user