CSharp Math.Remap method obsoletion
This commit is contained in:
@@ -652,6 +652,8 @@ namespace FlaxEngine
|
||||
/// <param name="toMin">The destination range minimum value.</param>
|
||||
/// <param name="toMax">The destination range maximum value.</param>
|
||||
/// <returns>The mapped value in range [toMin; toMax].</returns>
|
||||
// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
[Obsolete("Please use Remap to upkeep the API consistency")]
|
||||
public static double Map(double value, double fromMin, double fromMax, double toMin, double toMax)
|
||||
{
|
||||
double t = (value - fromMin) / (fromMax - fromMin);
|
||||
|
||||
@@ -815,6 +815,8 @@ namespace FlaxEngine
|
||||
/// <param name="toMin">The destination range minimum value.</param>
|
||||
/// <param name="toMax">The destination range maximum value.</param>
|
||||
/// <returns>The mapped value in range [toMin; toMax].</returns>
|
||||
// [Deprecated on 17.04.2023, expires on 17.04.2024]
|
||||
[Obsolete("Please use Remap to upkeep the API consistency")]
|
||||
public static float Map(float value, float fromMin, float fromMax, float toMin, float toMax)
|
||||
{
|
||||
float t = (value - fromMin) / (fromMax - fromMin);
|
||||
|
||||
Reference in New Issue
Block a user