Shear.decomposed

Shear.decomposed()[source]

Decompose the Transformation into its Scale, Shear, Rotation, Translation and Projection components.

Returns

5-tuple of Transformation – The scale, shear, rotation, translation, and projection components of the current transformation.

Examples

>>> trans1 = [1, 2, 3]
>>> angle1 = [-2.142, 1.141, -0.142]
>>> scale1 = [0.123, 2, 0.5]
>>> T1 = Translation.from_vector(trans1)
>>> R1 = Rotation.from_euler_angles(angle1)
>>> S1 = Scale.from_factors(scale1)
>>> M = T1 * R1 * S1
>>> S, H, R, T, P = M.decomposed()
>>> S1 == S
True
>>> R1 == R
True
>>> T1 == T
True