add rotate definition to index.d.ts (#2419)

Co-authored-by: Yeruva <Divya.Yeruva@pepsico.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
This commit is contained in:
Divya Yeruva 2022-02-16 17:12:00 +05:30 committed by GitHub
parent 2dbf32548f
commit 43d4551e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
types/index.d.ts vendored
View File

@ -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<T extends MathArray | Matrix>(
w: T,
theta: number | BigNumber | Complex | Unit,
v?: T
): T;
/**
* Calculate the size of a matrix or scalar.
* @param A matrix