Transform 2D

Builds a 2D transformation from a stack of translate, rotate, scale and skew operations.

Parameters

NameTypeDescription
ResultoutputTransform 2DThe input transform with the stack applied on top.
Angle UnitEnumThe unit every angle in the stack is written in.Choices: Degrees, Radians, Turns
Operation TypeEnumWhat Add Operation adds.Choices: Translate, Scale, Rotate, Skew, Look At, Apply Transform
Add OperationTriggerAdds an operation of the chosen type to the bottom of the stack.

Operations

The stack, applied from the top down. Each entry is one operation.

Translate

NameTypeDescription
TranslationVector 2How far to move across and down.

Scale

NameTypeDescription
ScaleVector 2The factor across and down. 1 leaves a direction as it is.
PivotVector 2The point the scaling grows from.

Rotate

NameTypeDescription
AngleFloatHow far to turn.
PivotVector 2The point the rotation turns around.

Skew

NameTypeDescription
AnglesVector 2How far the vertical lines lean over, and how far the horizontal lines do.
PivotVector 2The point that stays in place.

Look At

NameTypeDescription
TargetVector 2The point to aim at.
ForwardVector 2The direction of the picture that is pointed at the target, such as right for a picture drawn facing right. Its length does not matter.
PivotVector 2The point to aim from, and to turn around.

Apply Transform

NameTypeDescription
TransformTransform 2DA transform from another operator, applied at this place in the stack.

The Transform 2D operator describes where something sits in a plane as a stack of simple steps: move it, turn it, scale it, skew it or aim it at a point. Use it to drive the transform of a texture operator such as Transform. The operations are applied from the top down, and a new operator starts with a scale, a rotation and a translation, in that order. The buttons in an operation’s header move or remove it.

Texture operators measure a picture in pixels from its center, with up as positive and a positive angle turning counterclockwise. A pivot of 0, 0 therefore turns or scales a picture in place.

An Apply Transform placed first is the base the steps below build on. Placed last, it comes after this operator’s own steps.

See also Texture.Transform, Transform 3D.

Keywords: matrix, position, rotation, scale, skew, shear, pivot, texture, picture