mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 02:45:41 +00:00
Force precedence of constant arithemtic
(Relates to previous commit, forgot doubles. Leave me alone)
This commit is contained in:
parent
8f40dd8617
commit
00571983c6
@ -12,7 +12,7 @@ public static class DoubleExtensions
|
||||
/// <returns>The result of π * <paramref name="value" /> / 180.</returns>
|
||||
public static double DegreesToRadians(this double value)
|
||||
{
|
||||
return Math.PI * value / 180.0;
|
||||
return value * (Math.PI / 180.0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user