# tes3transform⚓︎

A rotation matrix, translation vector, and scale that marks an object's transformation.

## Properties⚓︎

### `rotation`⚓︎

The transform's rotation matrix.

Returns:

### `scale`⚓︎

The transform's scale.

Returns:

• `result` (number)

### `translation`⚓︎

The transform's translation vector.

Returns:

## Methods⚓︎

### `copy`⚓︎

Creates a copy of the transform.

``````local result = myObject:copy()
``````

Returns:

### `invert`⚓︎

Returns a new transform that is the inverse of this transform. The second return value indicates whether the calculating the inverse was possible.

``````local transform, valid = myObject:invert()
``````

Returns:

• `transform` (tes3transform)
• `valid` (boolean)

### `new`⚓︎

Creates a new instance of this type.

``````local result = myObject:new(rotation, translation, scale)
``````

Parameters:

• `rotation` (tes3matrix33): Optional.
• `translation` (tes3vector3): Optional.
• `scale` (number): Optional.

Returns:

### `toIdentity`⚓︎

Sets transform's rotation matrix to the identity matrix, translation to null vector, and scale to 1.0.

``````myObject:toIdentity()
``````

## Math Operations⚓︎

### Multiplication (`*`)⚓︎

Left operand type Right operand type Result type Description
tes3transform tes3transform tes3transform Calculate the combination of two transforms.
tes3transform tes3vector3 tes3vector3 Calculate the result of applying this transform to a vector.

Last update: August 25, 2023 10:03:48
Created: August 10, 2021 18:38:47