/* eslint-disable @typescript-eslint/no-unused-vars */ import { CreateTransformer, Matrix3 } from '../type'; /** * Apply custom matrix for current vector. * @param params [Matrix3] * @param x x of the the bounding box of coordinate * @param y y of the the bounding box of coordinate * @param width width of the the bounding box of coordinate * @param height height of the the bounding box of coordinate * @returns transformer */ export const matrix: CreateTransformer = (params, x, y, width, height) => { const [matrix] = params as [Matrix3]; return matrix; };