mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 04:55:42 +00:00
Force precedence of constant arithmetic
This commit is contained in:
parent
1fc22cc99c
commit
8f40dd8617
@ -12,7 +12,7 @@ public static class SingleExtensions
|
||||
/// <returns>The result of π * <paramref name="value" /> / 180.</returns>
|
||||
public static float DegreesToRadians(this float value)
|
||||
{
|
||||
return MathF.PI * value / 180.0f;
|
||||
return value * (MathF.PI / 180.0f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user