From a859c0cbff7318c2f6dbcd7404c0cc28b29ec7b4 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Wed, 22 Oct 2025 22:24:48 +0300 Subject: [PATCH] fix: quaternion string format order fixed --- Engine.Core/Primitives/Quaternion.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})"; } ///