From 1fc22cc99ca3e1239291d0cf68e18effef30713d Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 20 Apr 2022 18:36:16 +0100 Subject: [PATCH] Fix RadiansToDegrees formula --- X10D/src/SingleExtensions/SingleExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X10D/src/SingleExtensions/SingleExtensions.cs b/X10D/src/SingleExtensions/SingleExtensions.cs index 7ca2edd..79d8bd1 100644 --- a/X10D/src/SingleExtensions/SingleExtensions.cs +++ b/X10D/src/SingleExtensions/SingleExtensions.cs @@ -100,7 +100,7 @@ public static class SingleExtensions /// The result of π * / 180. public static float RadiansToDegrees(this float value) { - return MathF.PI * value / 180.0f; + return value * (180.0f / MathF.PI); } ///