Skip to content

Commit ae5cd82

Browse files
refactor(math): update sincos/cossin return types
1 parent 0d5b3e9 commit ae5cd82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/math/src/angle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { DEG2RAD, HALF_PI, INV_HALF_PI, PI, RAD2DEG, TAU } from "./api.js";
77
* @param theta -
88
* @param n -
99
*/
10-
export const sincos = (theta: number, n = 1) => [
10+
export const sincos = (theta: number, n = 1): [number, number] => [
1111
Math.sin(theta) * n,
1212
Math.cos(theta) * n,
1313
];
@@ -18,7 +18,7 @@ export const sincos = (theta: number, n = 1) => [
1818
* @param theta -
1919
* @param n -
2020
*/
21-
export const cossin = (theta: number, n = 1) => [
21+
export const cossin = (theta: number, n = 1): [number, number] => [
2222
Math.cos(theta) * n,
2323
Math.sin(theta) * n,
2424
];

0 commit comments

Comments
 (0)