import { math } from '@galacean/effects'; import { Vector3 } from './vector3'; /** * 四维矩阵扩展,提供数组构造、克隆、旋转分量提取与平移分量设置。 */ export declare class Matrix4 extends math.Matrix4 { /** * 通过数组创建矩阵(返回子类类型,基类 `fromArray` 返回 `math.Matrix4`)。 * @param array 数组 * @param offset 起始偏移值,默认 0 * @returns 矩阵 */ static fromArray(array: math.Matrix4DataType, offset?: number): Matrix4; /** * 克隆矩阵(返回子类类型)。 * @returns 新矩阵 */ clone(): Matrix4; /** * 提取矩阵的旋转部分写入当前矩阵。 * * 通过列向量长度取倒数消除缩放,不支持反射矩阵。 * @param m 源矩阵 * @returns 当前实例(链式调用) */ extractRotation(m: Matrix4): this; /** * 设置矩阵的平移分量。 * @param position 三维位置 * @returns 当前实例(链式调用) */ setPosition(position: Vector3): this; }