Package: graphene

Function graphene:matrix-decompose

Lambda List

graphene:matrix-decompose (matrix translate scale rotate shear perspective)

Arguments

matrix -- a graphene:matrix-t instance
translate -- a graphene:vec3-t instance
scale -- a graphene:vec3-t instance
rotate -- a graphene:quaternion-t instance
shear -- a graphene:vec3-t instance
perspective -- a graphene:vec4-t instance

Return Value

True if the matrix could be composed.

Details

Decomposes a transformation matrix into its component transformations.

The algorithm for decomposing a matrix is taken from the CSS3 Transforms specification. Specifically, the decomposition code is based on the equivalent code published in "Graphics Gems II", edited by Jim Arvo, and available online.
 

See also

#2024-12-30