Math: Transform

Nodes in this category perform transformations on graphical elements and calculations involving transformation matrices.

Nodes

NodeDetailsPossible Types
Decompose Rotation

Extracts the rotation component (in degrees) from the input transform.

This, together with the "Decompose Scale" node, also may jointly represent any shear component in the original transform.

transform → f64
Decompose Scale

Extracts the scale component from the input transform.

This, together with the "Decompose Rotation" node, also may jointly represent any shear component in the original transform.

transform → vec2
Decompose Translation

Extracts the translation component from the input transform.

transform → vec2
Extract Transform

Obtains the transform of the first element in the input table, if present.

Table<Graphic> → transform
Table<Vector> → transform
Table<Raster> → transform
Table<Color> → transform
Table<GradientStops> → transform
Invert Transform

Produces the inverse of the input transform, which is the transform that undoes the effect of the original transform.

transform → transform
Replace Transform

Overwrites the transform of each element in the input table with the specified transform.

Table<Graphic> → Table<Graphic>
Table<Vector> → Table<Vector>
Table<Raster> → Table<Raster>
Table<Color> → Table<Color>
Table<GradientStops> → Table<GradientStops>
Reset Transform

Resets the desired components of the input transform to their default values. If all components are reset, the output will be set to the identity transform.

Shear is represented jointly by rotation and scale, so resetting both will also remove any shear.

Table<Graphic> → Table<Graphic>
Table<Vector> → Table<Vector>
Table<Raster> → Table<Raster>
Table<Color> → Table<Color>
Table<GradientStops> → Table<GradientStops>