mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
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:
parent
2dbf32548f
commit
43d4551e7c
13
types/index.d.ts
vendored
13
types/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user