makeLerp

fun makeLerp(ending: Path?, weight: Float): Path

Interpolates between Path with Point array of equal size. Copy verb array and weights to out, and set out Point array to a weighted average of this Point array and ending Point array, using the formula:

(Path Point * weight) + ending Point * (1 - weight)

weight is most useful when between zero (ending Point array) and one (this Point_Array); will work with values outside of this range.

interpolate() returns null if Point array is not the same size as ending Point array. Call .isInterpolatable to check Path compatibility prior to calling interpolate().

Return

interpolated Path if Path contain same number of Point, null otherwise

Parameters

ending

Point array averaged with this Point array

weight

contribution of this Point array, and one minus contribution of ending Point array

See also