Matrix.interpolate

void interpolate(graphene.matrix.Matrix b, double factor, out graphene.matrix.Matrix res)

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.

Parameters

ba #graphene_matrix_t
factorthe linear interpolation factor
resreturn location for the interpolated matrix