From 43d4551e7c19f51d30e71b35009437c7ec6491f0 Mon Sep 17 00:00:00 2001 From: Divya Yeruva Date: Wed, 16 Feb 2022 17:12:00 +0530 Subject: [PATCH] add rotate definition to index.d.ts (#2419) Co-authored-by: Yeruva Co-authored-by: Jos de Jong --- types/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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