Skip to main content

Function: compose()

compose(A, B): Affine

Defined in: affine.ts:105

Compose two affine transforms: A×B (apply B first, then A).

This is equivalent to a @ b in Python's affine library, and is equivalent to multiplying the 3×3 matrices:

  | a1 b1 c1 |   | a2 b2 c2 |
| d1 e1 f1 | × | d2 e2 f2 |
| 0 0 1 | | 0 0 1 |

Parameters

A

Affine

The first affine transform to apply.

B

Affine

The second affine transform to apply.

Returns

Affine

The composed affine transform.