TopDown Engine  v4.2
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...
 
static void MigrateCurve (AnimationCurve oldCurve, MMTweenType newTweenType, MMF_Player owner)
 A helper used to migrate values from an AnimationCurve field to a MMTweenType, useful when updating old feedbacks to use them without losing legacy values More...
 

Member Function Documentation

◆ MigrateCurve()

static void MoreMountains.Feedbacks.MMFeedbacksHelpers.MigrateCurve ( AnimationCurve  oldCurve,
MMTweenType  newTweenType,
MMF_Player  owner 
)
static

A helper used to migrate values from an AnimationCurve field to a MMTweenType, useful when updating old feedbacks to use them without losing legacy values

Parameters
oldCurve
newTweenType
owner

◆ 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: