Transformation.inverted

Transformation.inverted()[source]

Returns the inverse transformation.

Returns:
compas.geometry.Transformation

The inverse transformation.

Examples

>>> from compas.geometry import Frame
>>> f = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15])
>>> T = Transformation.from_frame(f)
>>> I = Transformation(identity_matrix(4))
>>> I == T * T.inverse()
True