From 2e1691c2f1437c40949d62d670426bcb999b6346 Mon Sep 17 00:00:00 2001 From: Wiktor Kocielski Date: Mon, 17 Apr 2023 05:52:02 +0300 Subject: [PATCH] CSharp Math.Remap method obsoletion --- Source/Engine/Core/Math/Mathd.cs | 2 ++ Source/Engine/Core/Math/Mathf.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/Engine/Core/Math/Mathd.cs b/Source/Engine/Core/Math/Mathd.cs index cf2c20eb3..c3d4f1486 100644 --- a/Source/Engine/Core/Math/Mathd.cs +++ b/Source/Engine/Core/Math/Mathd.cs @@ -652,6 +652,8 @@ namespace FlaxEngine /// The destination range minimum value. /// The destination range maximum value. /// The mapped value in range [toMin; toMax]. + // [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); diff --git a/Source/Engine/Core/Math/Mathf.cs b/Source/Engine/Core/Math/Mathf.cs index 08ee103c0..87ed2201a 100644 --- a/Source/Engine/Core/Math/Mathf.cs +++ b/Source/Engine/Core/Math/Mathf.cs @@ -815,6 +815,8 @@ namespace FlaxEngine /// The destination range minimum value. /// The destination range maximum value. /// The mapped value in range [toMin; toMax]. + // [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);