diff --git a/types/index.d.ts b/types/index.d.ts index 8f5b8b089..1be904cff 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1674,6 +1674,19 @@ declare namespace math { column: number ): T; + /** + * Return a rotated matrix. + * @param {Array | Matrix} w Vector to rotate + * @param {number | BigNumber | Complex | Unit} theta Rotation angle + * @param {Array | Matrix} [v] Rotation axis + * @return {Array | Matrix} Multiplication of the rotation matrix and w + */ + rotate( + w: T, + theta: number | BigNumber | Complex | Unit, + v?: T + ): T; + /** * Calculate the size of a matrix or scalar. * @param A matrix