import { Point } from './point.js'; export declare class Matrix { a: number; b: number; c: number; d: number; tx: number; ty: number; type: number; /** * Creates a new Matrix instance. * @param {number} a - The a component of the matrix (default: 1). * @param {number} b - The b component of the matrix (default: 0). * @param {number} c - The c component of the matrix (default: 0). * @param {number} d - The d component of the matrix (default: 1). * @param {number} tx - The tx component of the matrix (default: 0). * @param {number} ty - The ty component of the matrix (default: 0). */ constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number); /** * Sets the matrix components from an array. * @param {number[]} array - The array to read the matrix components from (should have 6 elements). * @returns {Matrix} This matrix instance for chaining. */ fromArray(array: number[]): this; /** * Sets the matrix components to new values. * @param {number} a - The new a component of the matrix. * @param {number} b - The new b component of the matrix. * @param {number} c - The new c component of the matrix. * @param {number} d - The new d component of the matrix. * @param {number} tx - The new tx component of the matrix. * @param {number} ty - The new ty component of the matrix. * @returns {Matrix} This matrix instance for chaining. */ setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): this; /** * Creates a clone of this matrix. * @returns {Matrix} A new matrix with the same values as this one. */ clone(): Matrix; /** * Copies the values of this matrix to another matrix. * @param {Matrix} matrix - The matrix to copy values to. * @returns {Matrix} The destination matrix. */ copyTo(matrix: Matrix): Matrix; /** * Copies the values from another matrix to this matrix. * @param {Matrix} matrix - The matrix to copy values from. * @returns {Matrix} This matrix instance for chaining. */ copyFrom(matrix: Matrix): this; /** * Converts this matrix to a Float32Array. * @param {boolean} transpose - Whether to transpose the matrix (default: false). * @param {Float32Array} output - The array to store the result in (optional). * @returns {Float32Array} A Float32Array containing the matrix elements. */ toArray(transpose?: boolean, output?: Float32Array | null): Float32Array; /** * Applies this matrix to a point. * @param {Point} pos - The point to apply the matrix to. * @param {Point} output - The point to store the result in (optional). * @returns {Point} The transformed point. */ apply(pos: Point, output?: Point | null): Point; /** * Applies the inverse of this matrix to a point. * @param {Point} pos - The point to apply the inverse matrix to. * @param {Point} output - The point to store the result in (optional). * @returns {Point} The transformed point. */ applyInverse(pos: Point, output?: Point | null): Point; /** * Translates this matrix by the specified amounts. * @param {number} x - The amount to translate in the x direction. * @param {number} y - The amount to translate in the y direction. * @returns {Matrix} This matrix instance for chaining. */ translate(x: number, y: number): this; /** * Scales this matrix by the specified amounts. * @param {number} x - The amount to scale in the x direction. * @param {number} y - The amount to scale in the y direction. * @returns {Matrix} This matrix instance for chaining. */ scale(x: number, y: number): this; /** * Rotates this matrix by the specified angle. * @param {number} angle - The angle in radians to rotate by. * @returns {Matrix} This matrix instance for chaining. */ rotate(angle: number): this; /** * Appends another matrix to this matrix (multiplying matrices). * @param {Matrix} matrix - The matrix to append. * @returns {Matrix} This matrix instance for chaining. */ append(matrix: Matrix): this; /** * Sets this matrix to an identity matrix (no transformation). * @returns {Matrix} This matrix instance for chaining. */ identity(): this; } //# sourceMappingURL=matrix.d.ts.map