interpolate

fun interpolate(b: Matrix, factor: Double, res: Matrix)

Linearly interpolates the two given #graphene_matrix_t by interpolating the decomposed transformations separately.

If either matrix cannot be reduced to their transformations then the interpolation cannot be performed, and this function will return an identity matrix.

Since

1.0

Parameters

b

a #graphene_matrix_t

factor

the linear interpolation factor

res

return location for the interpolated matrix