|
| 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].
|
| 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.
|
◆ MigrateCurve()
| 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()
| 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
-
| x | The value to remap. |
| A | the minimum bound of interval [A,B] that contains the x value |
| B | the maximum bound of interval [A,B] that contains the x value |
| C | the minimum bound of target interval [C,D] |
| D | the maximum bound of target interval [C,D] |
The documentation for this class was generated from the following file: