the transformation matrix
Sets the transform properties based on the given affine transformation matrix and optional position.
This function should set the transform based on an input matrix and
(optionally) a starting position. Calling T.getMatrix() on the resulting
transform should produce the input matrix m
. Position should
be the point where changes to rotation or scale will rotate and scale around.
Meanings of position, rotation, scale, and anchor match those used in Adobe
standards (e.g., After Effects). The corresponding matrix is calculated
as shown in getMatrix() above: (P)(R)(S)*(-A). Position is specified as
a constraint because the two translations in the above equation create a
redundancy.
We recommend familiarizing yourself with the available methods in
src/anigraph/amath/Mat3.ts
.
Also familiarize yourself with the available functions in
src/anigraph/amath/Precision.ts
. These are useful when dealing with
floating point inaccuracies and other small numbers.
Note: do not let the scale factor be less than epsilon.
the affine transformation matrix
the starting positon
Generated using TypeDoc
Returns the transformation matrix for this set of transform properties.