This commit is contained in:
2021-06-27 20:27:03 -05:00
commit cbd4520e12
42 changed files with 1836 additions and 0 deletions

33
structs/v2.d.ts vendored Normal file
View File

@@ -0,0 +1,33 @@
/**
* a 2x1 matrix
* @public
* @noSelf
*/
declare class v2 {
readonly x: float;
readonly y: float;
/**
* **instanciating this class with `new` will break the lua**
* @deprecated
*/
constructor(x: float, y: float);
public __add(val: v2|v3|float): v2;
public __sub(val: v2|v3|float): v2;
public __mul(val: v2|v3|float): v2;
public __div(val: v2|v3|float): v2;
public __eq(val: v2): boolean;
public __lt(val: v2): boolean;
public __le(val: v2): boolean;
public __tostring(): string
public magnitude(val: v2|null): float;
}
/**
* @noSelf
*/
declare function v2(x: float, y: float): v2