From 8f40dd8617edc9534aef9e4aa6562ddf7d6e11af Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 20 Apr 2022 18:37:02 +0100 Subject: [PATCH] Force precedence of constant arithmetic --- 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 79d8bd1..544ebf2 100644 --- a/X10D/src/SingleExtensions/SingleExtensions.cs +++ b/X10D/src/SingleExtensions/SingleExtensions.cs @@ -12,7 +12,7 @@ public static class SingleExtensions /// The result of π * / 180. public static float DegreesToRadians(this float value) { - return MathF.PI * value / 180.0f; + return value * (MathF.PI / 180.0f); } ///