mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 04:05:40 +00:00
Fix RadiansToDegrees formula
This commit is contained in:
parent
b107360190
commit
1fc22cc99c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user