Documentation / @ripl/core / Matrix
Type Alias: Matrix ​
Matrix = [
number,number,number,number,number,number]
Defined in: packages/core/src/math/matrix.ts:14
A 2D affine transformation matrix stored as the six significant values of the augmented 3×3 matrix, in the same [a, b, c, d, e, f] order used by the Canvas 2D API (setTransform) and CSS matrix():
| a c e |
| b d f |
| 0 0 1 |A point [x, y] is transformed to [a·x + c·y + e, b·x + d·y + f].