Fix SA1414

This commit is contained in:
RoosterDragon
2023-04-05 19:41:28 +01:00
committed by Pavel Penev
parent a167f9680f
commit 14c0d011ea
10 changed files with 9 additions and 12 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenRA
(Roll, Pitch, Yaw) = QuaternionToEuler(x, y, z, w);
}
static (WAngle, WAngle, WAngle) QuaternionToEuler(int x, int y, int z, int w)
static (WAngle Roll, WAngle Pitch, WAngle Yaw) QuaternionToEuler(int x, int y, int z, int w)
{
// Theoretically 1024 squared, but may differ slightly due to rounding
var lsq = x * x + y * y + z * z + w * w;