Matrix.interpolate

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.

class Matrix
void
interpolate

Parameters

b graphene.matrix.Matrix

a #graphene_matrix_t

factor double

the linear interpolation factor

res graphene.matrix.Matrix

return location for the interpolated matrix