From b10736019042c8941bb43bdc3ed264edc678d989 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 20 Apr 2022 18:34:49 +0100 Subject: [PATCH] Use MathF.PI instead of Math.PI with cast --- X10D/src/SingleExtensions/SingleExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/X10D/src/SingleExtensions/SingleExtensions.cs b/X10D/src/SingleExtensions/SingleExtensions.cs index 3ce7698..7ca2edd 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 (float)Math.PI * value / 180.0f; + return MathF.PI * value / 180.0f; } /// @@ -100,7 +100,7 @@ public static class SingleExtensions /// The result of π * / 180. public static float RadiansToDegrees(this float value) { - return (float)Math.PI * value / 180.0f; + return MathF.PI * value / 180.0f; } ///