Method NormalizeCurve
NormalizeCurve(AnimationCurve, bool, bool)
Normalize a curve so that its X and Y axes range from 0 to 1
Declaration
public static AnimationCurve NormalizeCurve(AnimationCurve curve, bool normalizeX, bool normalizeY)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | curve | Curve to normalize |
bool | normalizeX | If true, normalize the X axis |
bool | normalizeY | If true, normalize the Y axis |
Returns
Type | Description |
---|---|
AnimationCurve | The normalized curve |