1 | export type Vector2 = [number, number];
|
2 | export declare function sub([x1, y1]: Vector2, [x2, y2]: Vector2): Vector2;
|
3 | export declare function add([x1, y1]: Vector2, [x2, y2]: Vector2): Vector2;
|
4 | export declare function dist([x0, y0]: Vector2, [x1, y1]: Vector2): number;
|
5 |
|
6 |
|
7 |
|
8 | export declare function angle([x, y]: Vector2): number;
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare function angleWithQuadrant([x, y]: Vector2): number;
|
15 | export declare function angleBetween(v0: Vector2, v1: Vector2): number;
|
16 | export declare function calcBBox(points: Vector2[]): number[];
|
17 |
|
18 |
|
19 |
|
20 | export declare function mid([x1, y1]: Vector2, [x2, y2]: Vector2): Vector2;
|