1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 04:05:40 +00:00

Fix RadiansToDegrees formula

This commit is contained in:
Oliver Booth 2022-04-20 18:36:16 +01:00
parent b107360190
commit 1fc22cc99c
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -100,7 +100,7 @@ public static class SingleExtensions
/// <returns>The result of π * <paramref name="value" /> / 180.</returns>
public static float RadiansToDegrees(this float value)
{
return MathF.PI * value / 180.0f;
return value * (180.0f / MathF.PI);
}
/// <summary>