new AxLinearInterpolationMechanism(argumentLeft, argumentRight, left, right, clamp)
Creates a new linear interpolation mechanism
This is a funcitonal mechanism used to linearly interpolate between two given values or extrapolate outside them, based on an input argument
Parameters:
Name | Type | Description |
---|---|---|
argumentLeft |
Number | The left endpoint of the argument's interval |
argumentRight |
Number | The right endpoint of the argument's interval |
left |
Number | The left endpoint of the resulting values interval |
right |
Number | The right endpoint of the resulting values interval |
clamp |
Boolean | Denotes whether the result should be clamped between the interval endpoints, thus producing interpolation only. If false, it will allow extrapolation for arguments beyond the argument interval |
Methods
Process(deltaTime) → {Boolean}
Performs the routines of the mechanism and returns whether the mechanism should continue to be processed the next frame
Parameters:
Name | Type | Description |
---|---|---|
deltaTime |
Number | The time in milliseconds, between the previous and the current call. Used to perform time based routines |
Returns:
True, if the mechanism hasn't finished its job and should continue to be processed in the next frame
- Type
- Boolean