From f3db47e47f879965efb8a1120322ac4edad01421 Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Tue, 18 Jul 2023 08:42:52 -0400 Subject: [PATCH] Found a bug in 2.4.1 :(. Not big enough to call for 2.4.2 though. --- Nerd_STF/Mathematics/Mathf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nerd_STF/Mathematics/Mathf.cs b/Nerd_STF/Mathematics/Mathf.cs index 113c528..17fc6d1 100644 --- a/Nerd_STF/Mathematics/Mathf.cs +++ b/Nerd_STF/Mathematics/Mathf.cs @@ -25,7 +25,7 @@ public static class Mathf public static Angle ArcSin(float value) { if (value > 1 || value < -1) throw new ArgumentOutOfRangeException(nameof(value)); - return (SolveNewton(x => Sin(x) - value, 0), Angle.Type.Degrees); + return (SolveNewton(x => Sin(x) - value, 0), Angle.Type.Radians); } public static Angle ArcTan(float value) => ArcSin(value / Sqrt(1 + value * value)); public static Angle ArcTan2(float a, float b) => ArcTan(a / b);