Infinite Runner Engine v1.9
Static Public Member Functions | List of all members
MoreMountains.Feedbacks.MMFeedbacksHelpers Class Reference
Inheritance diagram for MoreMountains.Feedbacks.MMFeedbacksHelpers:

Static Public Member Functions

static float Remap (float x, float A, float B, float C, float D)
 Remaps a value x in interval [A,B], to the proportional value in interval [C,D] More...
 

Member Function Documentation

◆ Remap()

static float MoreMountains.Feedbacks.MMFeedbacksHelpers.Remap ( float  x,
float  A,
float  B,
float  C,
float  D 
)
static

Remaps a value x in interval [A,B], to the proportional value in interval [C,D]

Parameters
xThe value to remap.
Athe minimum bound of interval [A,B] that contains the x value
Bthe maximum bound of interval [A,B] that contains the x value
Cthe minimum bound of target interval [C,D]
Dthe maximum bound of target interval [C,D]

The documentation for this class was generated from the following file: