주요 콘텐츠

cartesianOffset

R2026b

Class: simscape.multibody.Transformation
Namespace: simscape.multibody

Extract Cartesian translation offset from transformation

Since R2026b

Description

offset = cartesianOffset(t) extracts the Cartesian translation offset from the specified transformation.

example

Input Arguments

expand all

Transformation, specified as a simscape.multibody.Transformation object.

Output Arguments

expand all

Cartesian translation offset, returned as a simscape.Value object that has a 3-by-1 array and length unit.

Attributes

Accesspublic

To learn about attributes of methods, see Method Attributes.

Examples

expand all

Extract a Cartesian offset from a simscape.multibody.Transformation object.

Create a transformation with a translation.

t = simscape.multibody.Transformation([1 0 0 0], simscape.Value([2 -1 3],"m"));

Extract the Cartesian translation offset as a numeric column vector with units.

offset = cartesianOffset(t)
offset =
     2
    -1
     3

    (m)

Version History

Introduced in R2026b