Syntax

$tx.invert()

Description

Creates a transformation that inverts a given transformation

Parameters

name Type Type Description Mandatory Default
tx Transformation A transformation whose effect is to be inverted. yes

Return value

Type: `tl.threed.core:Transformation`

Examples

Example 1

txIdentity().invert()

Output: `txIdentity()`

The unit transformation is inverse to itself.

Example 2

translate(100, 100, 50)

Output: translate(-100, -100, -50)

Example 3

rotate(Math.PI, Math.PI, Math.PI/2)

Output: rotate(z: Math.PI/2)