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

Rename param "angle" to "value"

This commit is contained in:
Oliver Booth 2021-03-11 16:19:49 +00:00
parent 3499457667
commit ae9306cf93
2 changed files with 16 additions and 28 deletions

View File

@ -11,14 +11,11 @@ namespace X10D.DoubleExtensions
/// <summary> /// <summary>
/// Converts the current angle in degrees to its equivalent represented in radians. /// Converts the current angle in degrees to its equivalent represented in radians.
/// </summary> /// </summary>
/// <param name="angle">The angle in degrees to convert.</param> /// <param name="value">The angle in degrees to convert.</param>
/// <returns> /// <returns>The result of π * <paramref name="value" /> / 180.</returns>
/// <paramref name="angle" /> converted from degrees to radians by calculating public static double DegreesToRadians(this double value)
/// <c><paramref name="angle" />π / 180</c>.
/// </returns>
public static double DegreesToRadians(this double angle)
{ {
return Math.PI * angle / 180.0; return Math.PI * value / 180.0;
} }
/// <summary> /// <summary>
@ -105,14 +102,11 @@ namespace X10D.DoubleExtensions
/// <summary> /// <summary>
/// Converts the current angle in radians to its equivalent represented in degrees. /// Converts the current angle in radians to its equivalent represented in degrees.
/// </summary> /// </summary>
/// <param name="angle">The angle in radians to convert.</param> /// <param name="value">The angle in radians to convert.</param>
/// <returns> /// <returns>The result of π * <paramref name="value" /> / 180.</returns>
/// <paramref name="angle" /> converted from radians to degrees by calculating public static double RadiansToDegrees(this double value)
/// <c><paramref name="angle" />(180 / π)</c>.
/// </returns>
public static double RadiansToDegrees(this double angle)
{ {
return angle * (180.0 / Math.PI); return value * (180.0 / Math.PI);
} }
/// <summary> /// <summary>

View File

@ -11,14 +11,11 @@ namespace X10D.SingleExtensions
/// <summary> /// <summary>
/// Converts the current angle in degrees to its equivalent represented in radians. /// Converts the current angle in degrees to its equivalent represented in radians.
/// </summary> /// </summary>
/// <param name="angle">The angle in degrees to convert.</param> /// <param name="value">The angle in degrees to convert.</param>
/// <returns> /// <returns>The result of π * <paramref name="value" /> / 180.</returns>
/// <paramref name="angle" /> converted from degrees to radians by calculating public static float DegreesToRadians(this float value)
/// <c><paramref name="angle" />π / 180</c>.
/// </returns>
public static float DegreesToRadians(this float angle)
{ {
return (float)((double)angle).DegreesToRadians(); return (float)((double)value).DegreesToRadians();
} }
/// <summary> /// <summary>
@ -105,14 +102,11 @@ namespace X10D.SingleExtensions
/// <summary> /// <summary>
/// Converts the current angle in radians to its equivalent represented in degrees. /// Converts the current angle in radians to its equivalent represented in degrees.
/// </summary> /// </summary>
/// <param name="angle">The angle in radians to convert.</param> /// <param name="value">The angle in radians to convert.</param>
/// <returns> /// <returns>The result of π * <paramref name="value" /> / 180.</returns>
/// <paramref name="angle" /> converted from radians to degrees by calculating public static float RadiansToDegrees(this float value)
/// <c><paramref name="angle" />(180 / π)</c>.
/// </returns>
public static float RadiansToDegrees(this float angle)
{ {
return (float)((double)angle).RadiansToDegrees(); return (float)((double)value).RadiansToDegrees();
} }
/// <summary> /// <summary>