mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
7 lines
235 B
TypeScript
7 lines
235 B
TypeScript
|
export const applyMatrixToPoint = (matrix: number[][], point: number[]) => {
|
||
|
return [
|
||
|
point[0] * matrix[0][0] + point[1] * matrix[0][1] + matrix[0][2],
|
||
|
point[0] * matrix[1][0] + point[1] * matrix[1][1] + matrix[1][2]
|
||
|
];
|
||
|
};
|