From 9791f89e9e8a0963aa5fc3eede02f6b066690fa5 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Wed, 18 Sep 2024 11:50:11 +1000 Subject: [PATCH] Transform precision thing Just noticed it but probably doesn't affect anything really, we'll go from 64bit to 32bit after the math operations and not before. --- Robust.Shared/Physics/Transform.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Robust.Shared/Physics/Transform.cs b/Robust.Shared/Physics/Transform.cs index 8297079753b..149c11ce022 100644 --- a/Robust.Shared/Physics/Transform.cs +++ b/Robust.Shared/Physics/Transform.cs @@ -23,6 +23,7 @@ using System; using System.Numerics; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using JetBrains.Annotations; using Robust.Shared.Maths; using Robust.Shared.Utility; @@ -166,10 +167,10 @@ public Quaternion2D(float angle) public Quaternion2D(Angle angle) { - var radians = (float) angle.Theta; + var radians = angle.Theta; - C = MathF.Cos(radians); - S = MathF.Sin(radians); + C = (float) Math.Cos(radians); + S = (float) Math.Sin(radians); } public Quaternion2D Set(float angle)