Package: graphene

Function graphene:matrix-interpolate

Lambda List

graphene:matrix-interpolate (a b factor result)

Arguments

a -- a graphene:matrix-t instance
b -- a graphene:vec3-t instance
factor -- a number for the linear interpolation factor
result -- a graphene:matrix-t instance

Return Value

The graphene:matrix-t instance with the interpolated matrix.

Details

Linearly interpolates the two given matrices 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.

Notes

The factor argument ist coerced to a double float before being passed to the foreign C function.
 

See also

#2025-4-6