Fix SA1414
This commit is contained in:
committed by
Pavel Penev
parent
a167f9680f
commit
14c0d011ea
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user