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