tes3transform⚓︎
A rotation matrix, translation vector, and scale that marks an object's transformation.
Properties⚓︎
rotation⚓︎
The transform's rotation matrix.
Returns:
result(tes3matrix33)
scale⚓︎
The transform's scale.
Returns:
result(number)
translation⚓︎
The transform's translation vector.
Returns:
result(tes3vector3)
Methods⚓︎
copy⚓︎
Creates a copy of the transform.
local result = myObject:copy()
Returns:
result(tes3transform)
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:
result(tes3transform)
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. |