Skip to content

Commit 43d4551

Browse files
DIVYA-19Yeruvajosdejong
authored
add rotate definition to index.d.ts (#2419)
Co-authored-by: Yeruva <[email protected]> Co-authored-by: Jos de Jong <[email protected]>
1 parent 2dbf325 commit 43d4551

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

types/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,19 @@ declare namespace math {
16741674
column: number
16751675
): T;
16761676

1677+
/**
1678+
* Return a rotated matrix.
1679+
* @param {Array | Matrix} w Vector to rotate
1680+
* @param {number | BigNumber | Complex | Unit} theta Rotation angle
1681+
* @param {Array | Matrix} [v] Rotation axis
1682+
* @return {Array | Matrix} Multiplication of the rotation matrix and w
1683+
*/
1684+
rotate<T extends MathArray | Matrix>(
1685+
w: T,
1686+
theta: number | BigNumber | Complex | Unit,
1687+
v?: T
1688+
): T;
1689+
16771690
/**
16781691
* Calculate the size of a matrix or scalar.
16791692
* @param A matrix

0 commit comments

Comments
 (0)