Pass:transform

Edit

Transforms the coordinate system.




Transform the coordinate system using numbers.

Arguments

NameTypeDescription
xnumber The x component of the translation.
ynumber The y component of the translation.
znumber The z component of the translation.
sxnumber The x component of the scale.
synumber The y component of the scale.
sznumber The z component of the scale.
anglenumber The amount to rotate the coordinate system by, in radians.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Returns

Nothing

Transform the coordinate system using vector types.

Arguments

NameTypeDescription
translationVec3 The translation to apply.
scaleVec3 The scale to apply.
rotationQuat A quaternion containing the rotation to apply.

Returns

Nothing

Transform the coordinate system using a matrix.

Arguments

NameTypeDescription
transformMat4 A matrix containing the transformation to apply.

Returns

Nothing

See also