invert

Class: affine3d

Invert geometric transformation

Syntax

invtform = invert(tform)

Description

invtform = invert(tform) returns the inverse of the geometric transformation tform.

Input Arguments

tform

Geometric transformation, specified as an affine3d geometric transformation object.

Output Arguments

invtform

Inverse of the geometric transformation, returned as an affine3d geometric transformation object

Examples

expand all

Invert Geometric Transformation Object

Create an affine3d object that defines a different scale factor in each dimension.

Sx = 1.2;
Sy = 1.6;
Sz = 2.4;
tform = affine3d([Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]);
tform = 

  affine3d with properties:

                 T: [4x4 double]
    Dimensionality: 3

Invert the geometric transformation.

invtform = invert(tform)
invtform = 

  affine3d with properties:

                 T: [4x4 double]
    Dimensionality: 3
Was this topic helpful?