• Update a matrix to values which are computed by:

    • decomposing the the "startValue" and "endValue" matrices into their respective scale, rotation and translation matrices
    • interpolating for "gradient" (float) the values between each of these decomposed matrices between the start and the end
    • recomposing a new matrix from these 3 interpolated scale, rotation and translation matrices

    Parameters

    • startValue: ReadonlyMatrix

      defines the first matrix

    • endValue: ReadonlyMatrix

      defines the second matrix

    • gradient: number

      defines the gradient between the two matrices

    • result: MutableMatrix

      defines the target matrix

    Returns void